Commit ec5a4246 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Greg Kroah-Hartman

PM: Remove unbalanced mutex_unlock() from dpm_resume()

Remove an unnecessary unlocking of dpm_list_mtx in the error path
in drivers/base/power/main.c:dpm_suspend() .
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4f808bcd
...@@ -479,7 +479,6 @@ static int dpm_suspend(pm_message_t state) ...@@ -479,7 +479,6 @@ static int dpm_suspend(pm_message_t state)
mutex_lock(&dpm_list_mtx); mutex_lock(&dpm_list_mtx);
if (list_empty(&dev->power.entry)) if (list_empty(&dev->power.entry))
list_add(&dev->power.entry, &dpm_locked); list_add(&dev->power.entry, &dpm_locked);
mutex_unlock(&dpm_list_mtx);
break; break;
} }
mutex_lock(&dpm_list_mtx); mutex_lock(&dpm_list_mtx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment