mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
cef03f8f1d
commit
21ae1dd1d4
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue