]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM / Sleep: fix async suspend_late/freeze_late error handling
authorImre Deak <imre.deak@intel.com>
Fri, 24 Oct 2014 17:29:09 +0000 (20:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:37 +0000 (10:10 -0800)
commit1e08aeb6b8b2f414f9143f1644d2d6d5ae728b4c
tree2301bbfc5874bf45f6e9f79b318ba26a792631c9
parent256f2021526c801377ce633da45617b5fc51d5d3
PM / Sleep: fix async suspend_late/freeze_late error handling

commit 246ef766743618a7cab059d6c4993270075b173e upstream.

If an asynchronous suspend_late or freeze_late callback fails
during the SUSPEND, FREEZE or QUIESCE phases, we don't propagate the
corresponding error correctly, in effect ignoring the error and
continuing the suspend-to-ram/hibernation. During suspend-to-ram this
could leave some devices without a valid saved context, leading to a
failure to reinitialize them during resume. During hibernation this
could leave some devices active interfeering with the creation /
restoration of the hibernation image. Also this could leave the
corresponding devices without a valid saved context and failure to
reinitialize them during resume.

Fixes: de377b397272 (PM / sleep: Asynchronous threads for suspend_late)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/main.c