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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Oct 2014 17:42:26 +0000 (18:42 +0100)
commit94fb823fcb4892614f57e59601bb9d4920f24711
tree3e7ea9191719304aeb6daff1be69a94b907aa7a0
parent246ef766743618a7cab059d6c4993270075b173e
PM / Sleep: fix recovery during resuming from hibernation

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>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c