[patch 28/37] USB: airprime: unlock mutex instead of trying to lock it again

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, May 13, 2008 - 1:12 pm

2.6.25-stable review patch.  If anyone has any objections, please let us
know.

------------------
From: Leonardo Chiquitto <leonardo@iken.com.br>

commit 21ae1dd1d4948968ad2d923c5e104d38fb35b4e4 upstream

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 drivers/usb/serial/airprime.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/usb/serial/airprime.c
+++ b/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 00/37] 2.6.25.4 -stable review, Greg KH, (Tue May 13, 1:10 pm)
[patch 06/37] sparc: sunzilog uart order, Greg KH, (Tue May 13, 1:11 pm)
[patch 24/37] sparc: Fix ptrace() detach., Greg KH, (Tue May 13, 1:12 pm)
[patch 28/37] USB: airprime: unlock mutex instead of tryin ..., Greg KH, (Tue May 13, 1:12 pm)
[patch 37/37] md: fix raid5 repair operations, Greg KH, (Tue May 13, 1:12 pm)
Re: [patch 20/37] {nfnetlink, ip, ip6}_queue: fix skb_over ..., Gustavo Guillermo Perez, (Wed May 14, 9:45 am)
Hardware designt to prevent Damages... [WAS: [patch 23/37] ..., Michelle Konzack, (Wed May 14, 12:52 pm)
Re: Hardware designt to prevent Damages... [WAS: [patch 23 ..., linux-os (Dick Johnson), (Thu May 15, 10:57 am)
Re: [patch 22/37] x86: sysfs cpu?/topology is empty in 2.6 ..., Vaidyanathan Srinivasan, (Thu May 15, 11:06 am)