tile: use free_bootmem_late() for initrd
authorChris Metcalf <cmetcalf@ezchip.com>
Thu, 23 Jul 2015 18:11:09 +0000 (14:11 -0400)
committerChris Metcalf <cmetcalf@ezchip.com>
Thu, 23 Jul 2015 18:11:09 +0000 (14:11 -0400)
We were previously using free_bootmem() and just getting lucky
that nothing too bad happened.

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Cc: stable@vger.kernel.org
arch/tile/kernel/setup.c

index 99c9ff87e0187502179f8012afa5bd54309d2eb9..6b755d125783f45b05de02e3fe5f7b5e32d1af45 100644 (file)
@@ -1139,7 +1139,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);
 }
 
 static int __init setup_initrd(char *str)