]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: initrd: disable initrd if passed address overlaps reserved region
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 30 Jan 2011 11:21:05 +0000 (11:21 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:35 +0000 (15:14 -0800)
commitf7095bc2220cd6637b62218eab790fffadbee10d
tree6ebb8b802c59f1cff6a51eb2e8eeebe0af6f4996
parentafbbe5ac9f851c1449ed9edbde4c068a99492f32
ARM: initrd: disable initrd if passed address overlaps reserved region

commit b0a2679d27408d97ce31e5f800b44227d3388b84 upstream.

Disable the initrd if the passed address already overlaps the reserved
region.  This avoids oopses on Netwinders when NeTTrom tells the kernel
that an initrd is located at mem+4MB, but this overlaps the BSS,
resulting in the kernels in-use BSS being freed.

This should be applied to v2.6.37-stable.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mm/init.c