Skip to content

Commit 26e109b

Browse files
akpm00gregkh
authored andcommitted
USB: testing driver: don't free a locked mutex
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>
1 parent 1cfab02 commit 26e109b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/usb/misc/usbtest.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,8 +1992,6 @@ static void usbtest_disconnect (struct usb_interface *intf)
19921992
{
19931993
struct usbtest_dev *dev = usb_get_intfdata (intf);
19941994

1995-
mutex_lock(&dev->lock);
1996-
19971995
usb_set_intfdata (intf, NULL);
19981996
dev_dbg (&intf->dev, "disconnect\n");
19991997
kfree (dev);

0 commit comments

Comments
 (0)