* [PATCH] airprime: unlock mutex instead of trying to lock it again
@ 2008-04-22 19:02 Leonardo Chiquitto
0 siblings, 0 replies; only message in thread
From: Leonardo Chiquitto @ 2008-04-22 19:02 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg Kroah-Hartman
Hello,
The following patch fixes a [probable] copy & paste mistake in
airprime.c. Instead of unlocking an acquired mutex, the actual
code tries to lock it again.
Signed-off-by: Leonardo Chiquitto <lchiquitto@novell.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
---
Leonardo
Index: kernel/drivers/usb/serial/airprime.c
===================================================================
--- kernel.orig/drivers/usb/serial/airprime.c
+++ kernel/drivers/usb/serial/airprime.c
@@ -220,7 +220,7 @@ static void airprime_close(struct usb_se
mutex_lock(&port->serial->disc_mutex);
if (!port->serial->disconnected)
airprime_send_setup(port);
- mutex_lock(&port->serial->disc_mutex);
+ mutex_unlock(&port->serial->disc_mutex);
for (i = 0; i < NUM_READ_URBS; ++i) {
usb_kill_urb (priv->read_urbp[i]);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-22 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-22 19:02 [PATCH] airprime: unlock mutex instead of trying to lock it again Leonardo Chiquitto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®