]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: airprime: unlock mutex instead of trying to lock it again
authorLeonardo Chiquitto <leonardo@iken.com.br>
Tue, 22 Apr 2008 19:02:03 +0000 (16:02 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 2 May 2008 17:25:56 +0000 (10:25 -0700)
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

index 725b6b94c2740c2f0c58743caeca428c11cccc28..7290b41fa11c33cf0dfb36f2b01a8b2a1d9495a8 100644 (file)
@@ -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]);