mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 10:01:41 +00:00
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: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4f808bcdf8
commit
ec5a42465a
@ -479,7 +479,6 @@ static int dpm_suspend(pm_message_t state)
|
||||
mutex_lock(&dpm_list_mtx);
|
||||
if (list_empty(&dev->power.entry))
|
||||
list_add(&dev->power.entry, &dpm_locked);
|
||||
mutex_unlock(&dpm_list_mtx);
|
||||
break;
|
||||
}
|
||||
mutex_lock(&dpm_list_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user