summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorSebastian Capella <sebastian.capella@linaro.org>2014-02-19 05:52:08 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-26 04:13:15 +0400
commitf8d5b9e9e5372f0deb7bc1ab1088a9b60b0a793d (patch)
tree7ad881c6ca24b6cac29cb2321ecea6b3edba21f2 /drivers/base
parentcfbf8d4857c26a8a307fb7cd258074c9dcd8c691 (diff)
downloadlinux-f8d5b9e9e5372f0deb7bc1ab1088a9b60b0a793d.tar.xz
PM / hibernate: Fix restore hang in freeze_processes()
During restore, pm_notifier chain are called with PM_RESTORE_PREPARE. The firmware_class driver handler fw_pm_notify does not have a handler for this. As a result, it keeps a reader on the kmod.c umhelper_sem. During freeze_processes, the call to __usermodehelper_disable tries to take a write lock on this semaphore and hangs waiting. Signed-off-by: Sebastian Capella <sebastian.capella@linaro.org> Acked-by: Ming Lei <ming.lei@canonical.com> Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/firmware_class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 8a97ddfa6122..c30df50e4440 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -1580,6 +1580,7 @@ static int fw_pm_notify(struct notifier_block *notify_block,
switch (mode) {
case PM_HIBERNATION_PREPARE:
case PM_SUSPEND_PREPARE:
+ case PM_RESTORE_PREPARE:
kill_requests_without_uevent();
device_cache_fw_images();
break;