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

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/power/hibernate.c+1−1
@@ -678,7 +678,7 @@ static int load_image_and_restore(void) · 677 unmodified lines
678678 error = swsusp_read(&flags);
679679 swsusp_close(FMODE_READ);
680680 if (!error)
681− hibernation_restore(flags & SF_PLATFORM_MODE);
681+ error = hibernation_restore(flags & SF_PLATFORM_MODE);
682682
683683 pr_err("Failed to load image, recovering.\n");
684684 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