Commit e655a250 authored by Con Kolivas's avatar Con Kolivas Committed by Linus Torvalds
Browse files

[PATCH] swswsup: return correct load_image error

If there's an error in load_image() we should return that without checking
Signed-off-by: default avatarCon Kolivas <>
Acked-by: default avatar"Rafael J. Wysocki" <>
Cc: Pavel Machek <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9f4fd61f
......@@ -454,10 +454,11 @@ static int load_image(struct swap_map_handle *handle,
} while (ret > 0);
if (!error)
if (!error) {
if (!snapshot_image_loaded(snapshot))
error = -ENODATA;
if (!snapshot_image_loaded(snapshot))
error = -ENODATA;
return error;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment