]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] off-by-1 in kernel/power/main.c
authordean gaudet <dean@arctic.org>
Fri, 28 Apr 2006 01:39:17 +0000 (18:39 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 28 Apr 2006 15:33:46 +0000 (08:33 -0700)
commit47bb789973fed504e4711ec34e63b84e6cbfb4e8
tree2f617a73244a93d4b5b92236b6f809bf36912db5
parent37e53db8aa233c65142d63b496277bf5be9c0ade
[PATCH] off-by-1 in kernel/power/main.c

There's an off-by-1 in kernel/power/main.c:state_store() ...  if your
kernel just happens to have some non-zero data at pm_states[PM_SUSPEND_MAX]
(i.e.  one past the end of the array) then it'll let you write anything you
want to /sys/power/state and in response the box will enter S5.

Signed-off-by: dean gaudet <dean@arctic.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/main.c