PM / Sleep: fix recovery during resuming from hibernation
authorImre Deak <imre.deak@intel.com>
Fri, 24 Oct 2014 17:29:10 +0000 (20:29 +0300)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:05:05 +0000 (17:05 +0800)
commit358105b826419ac319ad05b398d40a31c52de90d
treec2edf4a478a37b1c5d2bb97af8fd5cf88d479f40
parentb1a76f1c42ec736247cd9a789d67532f7f2a1d31
PM / Sleep: fix recovery during resuming from hibernation

commit 94fb823fcb4892614f57e59601bb9d4920f24711 upstream.

If a device's dev_pm_ops::freeze callback fails during the QUIESCE
phase, we don't rollback things correctly calling the thaw and complete
callbacks. This could leave some devices in a suspended state in case of
an error during resuming from hibernation.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
kernel/power/hibernate.c