]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:03:01 +0000 (19:03 +0100)
commitf40d14580cb56b248d3e744b94c9324778983c19
tree5488c6ad771784c4aa41e7120021bb899362e1b4
parent866f9fec24ee1dfa4a40e1d166b6ce3f4c3736de
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: Jiri Slaby <jslaby@suse.cz>
kernel/power/hibernate.c