Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26e109b0 authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1cfab028
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);