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)
commit2f41dddbbd7193fb5cdae0a24db4d378d56885fd
treedf51902d5e2e3f8f0429349b9a6abcac201c73cc
parentb1d93de3e4633c4cbfd622a3564d8268a116a46a
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