Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131654
b: refs/heads/master
c: ebae260
h: refs/heads/master
v: v3
  • Loading branch information
Andrey Borzenkov authored and Linus Torvalds committed Feb 21, 2009
1 parent d36590a commit 23aa42b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0cb57258fe01e9b21076b6a15b6aec7a24168228
refs/heads/master: ebae2604f2c3693717d9dc687c84578f0526480c
8 changes: 4 additions & 4 deletions trunk/kernel/power/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ static int snapshot_open(struct inode *inode, struct file *filp)
data->swap = swsusp_resume_device ?
swap_type_of(swsusp_resume_device, 0, NULL) : -1;
data->mode = O_RDONLY;
error = pm_notifier_call_chain(PM_RESTORE_PREPARE);
error = pm_notifier_call_chain(PM_HIBERNATION_PREPARE);
if (error)
pm_notifier_call_chain(PM_POST_RESTORE);
pm_notifier_call_chain(PM_POST_HIBERNATION);
} else {
data->swap = -1;
data->mode = O_WRONLY;
error = pm_notifier_call_chain(PM_HIBERNATION_PREPARE);
error = pm_notifier_call_chain(PM_RESTORE_PREPARE);
if (error)
pm_notifier_call_chain(PM_POST_HIBERNATION);
pm_notifier_call_chain(PM_POST_RESTORE);
}
if (error)
atomic_inc(&snapshot_device_available);
Expand Down

0 comments on commit 23aa42b

Please sign in to comment.