commit | 1525a2ad76f991eba9755f75c9b6d4d97abad25e | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rjw@sisk.pl> | Sun May 06 14:50:44 2007 -0700 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Mon May 07 12:12:59 2007 -0700 |
tree | 7e5307d825e1f8a55581a0b465865b9f2cc90af6 | |
parent | 04293355ac9dbe81bd01b89ca2adb58be34c2c60 [diff] |
swsusp: fix error paths in snapshot_open We forget to increase device_available if there's an error in snapshot_open(), so the snapshot device cannot be open at all after snapshot_open() has returned an error. 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>