https://github.com/torvalds/linux
Revision 8d98a690f58e0d6ecf424b7ca84488475cf87bd9 authored by Rafael J. Wysocki on 17 May 2007, 05:11:19 UTC, committed by Linus Torvalds on 17 May 2007, 12:23:05 UTC
The sysfs files /sys/power/disk and /sys/power/state do not work as
documented, since they allow the user to write only a few initial
characters of the input string to trigger the option (eg.  'echo pl >
/sys/power/disk' activates the platform mode of hibernation).  Fix it.

Special thanks to Peter Moulder <Peter.Moulder@infotech.monash.edu.au> for
pointing out the problem.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7925409
History
Tip revision: 8d98a690f58e0d6ecf424b7ca84488475cf87bd9 authored by Rafael J. Wysocki on 17 May 2007, 05:11:19 UTC
swsusp: fix sysfs interface
Tip revision: 8d98a69
File Mode Size
Kconfig -rw-r--r-- 22.9 KB
Makefile -rw-r--r-- 1.0 KB
calibrate.c -rw-r--r-- 4.7 KB
do_mounts.c -rw-r--r-- 9.7 KB
do_mounts.h -rw-r--r-- 1.4 KB
do_mounts_initrd.c -rw-r--r-- 3.0 KB
do_mounts_md.c -rw-r--r-- 7.3 KB
do_mounts_rd.c -rw-r--r-- 10.0 KB
initramfs.c -rw-r--r-- 11.8 KB
main.c -rw-r--r-- 20.0 KB
noinitramfs.c -rw-r--r-- 1.4 KB
version.c -rw-r--r-- 1009 bytes

back to top