From: Anton Blanchard Date: Wed, 14 Sep 2011 20:26:15 +0000 (+1000) Subject: memory hotplug: Refuse to add unaligned memory regions X-Git-Tag: v3.2-rc1~184^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61b94feafa1c59a1de2719d23294dea6fd4ca362;p=pandora-kernel.git memory hotplug: Refuse to add unaligned memory regions The sysfs memory probe interface allows unaligned regions to be added: # echo 0xffffff > /sys/devices/system/memory/probe # cat /proc/iomem 00ffffff-01fffffe : System RAM 01ffffff-02fffffe : System RAM 02ffffff-03fffffe : System RAM 03ffffff-04fffffe : System RAM 04ffffff-05fffffe : System RAM Return -EINVAL instead of creating these bad regions. Signed-off-by: Anton Blanchard Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed