From: Rafael J. Wysocki Date: Sun, 6 May 2007 21:50:44 +0000 (-0700) Subject: swsusp: fix error paths in snapshot_open X-Git-Tag: v2.6.22-rc1~902 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1525a2ad76f991eba9755f75c9b6d4d97abad25e;p=pandora-kernel.git 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 Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed