]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
USB: testing driver: don't free a locked mutex
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 14 Dec 2007 00:15:34 +0000 (16:15 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:57 +0000 (14:34 -0800)
Dopey thing to do and lockdep will (or should) warn.

Spotted by Daniel Walker.

Cc: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Cc: Daniel Walker <dwalker@mvista.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usbtest.c

index e3851359d6537ed7d7b55a67672e621b52dd4f7f..f1b886c204c0c2ceb51d006681285b270643f3f5 100644 (file)
@@ -1992,8 +1992,6 @@ static void usbtest_disconnect (struct usb_interface *intf)
 {
        struct usbtest_dev      *dev = usb_get_intfdata (intf);
 
-       mutex_lock(&dev->lock);
-
        usb_set_intfdata (intf, NULL);
        dev_dbg (&intf->dev, "disconnect\n");
        kfree (dev);