]> git.baikalelectronics.ru Git - kernel.git/commit
swsusp: Fix userland interface
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Jun 2007 17:16:03 +0000 (10:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 16 Jun 2007 20:16:15 +0000 (13:16 -0700)
commit0af09930ab00e3b6479f895ac7fdfdbba8e2d18e
treedf51902d5e2e3f8f0429349b9a6abcac201c73cc
parenta33b5db4320d9863e3560b80e9e9d004ab88dc02
swsusp: Fix userland interface

Fix oops caused by 'cat /dev/snapshot', reported by Arkadiusz Miskiewicz,
and make it impossible to thaw tasks with the help of the swsusp userland
interface while there is a snapshot image ready to save.

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>
kernel/power/user.c