summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLeonardo Chiquitto <leonardo@iken.com.br>2008-04-22 16:02:03 -0300
committerGreg Kroah-Hartman <gregkh@suse.de>2008-05-15 07:50:06 -0700
commitcfa4a0793f4bc4a6ab83657612b88b266d43b5ab (patch)
tree3b42af037f86b2e98865ce2fabfcc68a90d12246 /drivers
parent7d33036198e7c7e0c298dc447aa355f18840120b (diff)
USB: airprime: unlock mutex instead of trying to lock it again
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/airprime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/airprime.c b/drivers/usb/serial/airprime.c
index f156dba0300f..a3482fc6f29c 100644
--- a/drivers/usb/serial/airprime.c
+++ b/drivers/usb/serial/airprime.c
@@ -220,7 +220,7 @@ static void airprime_close(struct usb_serial_port *port, struct file * filp)
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]);