git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220c1ed
)
memory hotplug: Refuse to add unaligned memory regions
author
Anton Blanchard
<anton@samba.org>
Wed, 14 Sep 2011 20:26:15 +0000
(06:26 +1000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 26 Sep 2011 23:21:14 +0000
(16:21 -0700)
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 <anton@samba.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/memory.c
patch
|
blob
|
history
diff --cc
drivers/base/memory.c
Simple merge