Skip to content

Commit

Permalink
USB: airprime: unlock mutex instead of trying to lock it again
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leonardo Chiquitto authored and Greg Kroah-Hartman committed May 2, 2008
1 parent cef03f8 commit 21ae1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/airprime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 21ae1dd

Please sign in to comment.