Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275629
b: refs/heads/master
c: 501a708
h: refs/heads/master
i:
  275627: da02caa
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Rafael J. Wysocki committed Nov 19, 2011
1 parent 76c986f commit 6389bdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: aa9a7b11821e883a7b93ecce190881e0ea48648b
refs/heads/master: 501a708f18ef911328ffd39f39738b8a7862aa8e
3 changes: 2 additions & 1 deletion trunk/kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,14 @@ static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,
if (*s && len == strlen(*s) && !strncmp(buf, *s, len))
break;
}
if (state < PM_SUSPEND_MAX && *s)
if (state < PM_SUSPEND_MAX && *s) {
error = enter_state(state);
if (error) {
suspend_stats.fail++;
dpm_save_failed_errno(error);
} else
suspend_stats.success++;
}
#endif

Exit:
Expand Down

0 comments on commit 6389bdf

Please sign in to comment.