]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Suspend: Fix bug in suspend statistics update
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Sat, 19 Nov 2011 13:37:57 +0000 (14:37 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 19 Nov 2011 13:37:57 +0000 (14:37 +0100)
commitb1454121e06b3a3b06bd7513698d67efda724424
treef3adbf5979f9e714291cec5c2a893edbca16ba26
parent4d97707ce014d46c967ce44474466e763ca00339
PM / Suspend: Fix bug in suspend statistics update

After commit 94e1aceabd1a617840c5eab1236c382a67ec5a47
(PM / Suspend: Add statistics debugfs file for suspend to RAM)
a missing pair of braces inside the state_store() function causes even
invalid arguments to suspend to be wrongly treated as failed suspend
attempts. Fix this.

[rjw: Put the hash/subject of the buggy commit into the changelog.]

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/main.c