[PATCH] airprime: unlock mutex instead of trying to lock it again

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: Greg Kroah-Hartman <gregkh@...>
Date: Tuesday, April 22, 2008 - 3:02 pm

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]);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] airprime: unlock mutex instead of trying to lock it ..., Leonardo Chiquitto, (Tue Apr 22, 3:02 pm)