Skip to content
Snippets Groups Projects
Commit 47bb7899 authored by dean gaudet's avatar dean gaudet Committed by Linus Torvalds
Browse files

[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: default avatardean gaudet <dean@arctic.org>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 37e53db8
No related branches found
Tags v2.6.28-rc1
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment