From: Leonardo Chiquitto Date: Tue, 22 Apr 2008 19:02:03 +0000 (-0300) Subject: USB: airprime: unlock mutex instead of trying to lock it again X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21ae1dd1d4948968ad2d923c5e104d38fb35b4e4;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/airprime.c b/drivers/usb/serial/airprime.c index 725b6b94c27..7290b41fa11 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]);