Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966371AbcCPIez (ORCPT ); Wed, 16 Mar 2016 04:34:55 -0400 Received: from mail.kernel.org ([198.145.29.136]:59623 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965665AbcCPIJZ (ORCPT ); Wed, 16 Mar 2016 04:09:25 -0400 From: lizf@kernel.org To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Chris Metcalf , Zefan Li Subject: [PATCH 3.4 042/107] tile: use free_bootmem_late() for initrd Date: Wed, 16 Mar 2016 16:05:36 +0800 Message-Id: <1458115601-5762-42-git-send-email-lizf@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458115541-5712-1-git-send-email-lizf@kernel.org> References: <1458115541-5712-1-git-send-email-lizf@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 33 From: Chris Metcalf 3.4.111-rc1 review patch. If anyone has any objections, please let me know. ------------------ commit 3f81d2447b37ac697b3c600039f2c6b628c06e21 upstream. We were previously using free_bootmem() and just getting lucky that nothing too bad happened. Signed-off-by: Chris Metcalf Signed-off-by: Zefan Li --- arch/tile/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index fd107ab..c40f806 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c @@ -972,7 +972,7 @@ static void __init load_hv_initrd(void) void __init free_initrd_mem(unsigned long begin, unsigned long end) { - free_bootmem(__pa(begin), end - begin); + free_bootmem_late(__pa(begin), end - begin); } #else -- 1.9.1