]> git.hungrycats.org Git - linux/commitdiff
tile: use free_bootmem_late() for initrd
authorChris Metcalf <cmetcalf@ezchip.com>
Thu, 23 Jul 2015 18:11:09 +0000 (14:11 -0400)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Aug 2015 06:36:38 +0000 (08:36 +0200)
commit 3f81d2447b37ac697b3c600039f2c6b628c06e21 upstream.

We were previously using free_bootmem() and just getting lucky
that nothing too bad happened.

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/tile/kernel/setup.c

index 74c91729a62a9290e12bb31ea96ab7ad240aebc2..bdb3ecf8e1680f77a99683924f7c46b40d0139c3 100644 (file)
@@ -1146,7 +1146,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)