History

PM: hibernate: Propagate the return value of hibernation_restore()

If hibernation_restore() fails, the 'error' should not be zero.

Dexuan Cui committed 6 years ago

Commit 3704a6a1 parent 2ce94bc1 file · +1 −1Browse files

Unified · Split

kernel/power/hibernate.c+1−1
@@ -678,7 +678,7 @@ static int load_image_and_restore(void) · 677 unmodified lines
678 error = swsusp_read(&flags);678 error = swsusp_read(&flags);
679 swsusp_close(FMODE_READ);679 swsusp_close(FMODE_READ);
680 if (!error)680 if (!error)
681 hibernation_restore(flags & SF_PLATFORM_MODE);681 error = hibernation_restore(flags & SF_PLATFORM_MODE);
682 682
683 pr_err("Failed to load image, recovering.\n");683 pr_err("Failed to load image, recovering.\n");
684 swsusp_free();684 swsusp_free();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t