[PATCH] swswsup: return correct load_image error
authorCon Kolivas <kernel@kolivas.org>
Sun, 26 Mar 2006 09:37:11 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:56:55 +0000 (08:56 -0800)
commite655a250d5fc12b6dfe0d436180ba4a3bfffdc9f
treefc914e0c146f82139ff7e40d30ec642f3663aa2a
parent9f4fd61fa7c13ea905dac18b9baa766a35b88485
[PATCH] swswsup: return correct load_image error

If there's an error in load_image() we should return that without checking
snapshot_image_loaded.

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/swap.c