Skip to content

Commit

Permalink
PM: Remove unbalanced mutex_unlock() from dpm_resume()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Greg Kroah-Hartman committed Feb 21, 2008
1 parent 4f808bc commit ec5a424
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec5a424

Please sign in to comment.