From: Rafael J. Wysocki Date: Wed, 20 Feb 2008 01:01:41 +0000 (+0100) Subject: PM: Remove unbalanced mutex_unlock() from dpm_resume() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec5a42465abc585a7f8117be5eecc361490e48ce;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index d6095608465a..cea5ed3919cd 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -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);