PM: fix new mutex-locking bug in the PM core
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 29 Feb 2008 16:50:22 +0000 (11:50 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Mar 2008 22:47:05 +0000 (14:47 -0800)
commit1b3cbec1dcb6747b587b40335f5de1d9e035063c
tree7e24a74ac0c8082581335c764b184e0ae027804e
parent7a8d37a37380e2b1500592d40b7ec384dbebe7a0
PM: fix new mutex-locking bug in the PM core

This patch (as1041) fixes a bug introduced by the
acquire-all-device-semaphores reversion.  The error pathway of
dpm_suspend() fails to reacquire a mutex it should be holding.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/main.c