LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] PM: Remove unbalanced mutex_unlock() from dpm_resume()
@ 2008-02-20  1:01 Rafael J. Wysocki
  2008-02-20 16:13 ` Alan Stern
  2008-02-20 21:57 ` patch pm-remove-unbalanced-mutex_unlock-from-dpm_resume.patch added to gregkh-2.6 tree gregkh
  0 siblings, 2 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2008-02-20  1:01 UTC (permalink / raw)
  To: Greg KH
  Cc: ACPI Devel Maling List, Alan Stern, Len Brown,
	Linux-pm mailing list, LKML, Pavel Machek

Hi Greg,

Please consider taking the following fix for 2.6.25.

Thanks,
Rafael

---
From: Rafael J. Wysocki <rjw@sisk.pl>

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>
---
 drivers/base/power/main.c |    1 -
 1 file changed, 1 deletion(-)

Index: linux-2.6/drivers/base/power/main.c
===================================================================
--- linux-2.6.orig/drivers/base/power/main.c
+++ linux-2.6/drivers/base/power/main.c
@@ -479,7 +479,6 @@ static int dpm_suspend(pm_message_t stat
 			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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-20 22:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-20  1:01 [PATCH] PM: Remove unbalanced mutex_unlock() from dpm_resume() Rafael J. Wysocki
2008-02-20 16:13 ` Alan Stern
2008-02-20 21:57 ` patch pm-remove-unbalanced-mutex_unlock-from-dpm_resume.patch added to gregkh-2.6 tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).