diff options
author | Leonardo Chiquitto <leonardo@iken.com.br> | 2008-04-22 15:02:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-02 13:25:56 -0400 |
commit | 21ae1dd1d4948968ad2d923c5e104d38fb35b4e4 (patch) | |
tree | ee94aaf9777e65b1f762b9309159a54812a8e168 /drivers/usb | |
parent | cef03f8f1d5042e85de431d739eeded89d79999b (diff) |
USB: airprime: unlock mutex instead of trying to lock it again
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/usb')
-rw-r--r-- | drivers/usb/serial/airprime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/airprime.c b/drivers/usb/serial/airprime.c index 725b6b94c274..7290b41fa11c 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) | |||
220 | mutex_lock(&port->serial->disc_mutex); | 220 | mutex_lock(&port->serial->disc_mutex); |
221 | if (!port->serial->disconnected) | 221 | if (!port->serial->disconnected) |
222 | airprime_send_setup(port); | 222 | airprime_send_setup(port); |
223 | mutex_lock(&port->serial->disc_mutex); | 223 | mutex_unlock(&port->serial->disc_mutex); |
224 | 224 | ||
225 | for (i = 0; i < NUM_READ_URBS; ++i) { | 225 | for (i = 0; i < NUM_READ_URBS; ++i) { |
226 | usb_kill_urb (priv->read_urbp[i]); | 226 | usb_kill_urb (priv->read_urbp[i]); |