mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
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>
This commit is contained in:
parent
1cfab028af
commit
26e109b0a9
1 changed files with 0 additions and 2 deletions
|
@ -1992,8 +1992,6 @@ static void usbtest_disconnect (struct usb_interface *intf)
|
||||||
{
|
{
|
||||||
struct usbtest_dev *dev = usb_get_intfdata (intf);
|
struct usbtest_dev *dev = usb_get_intfdata (intf);
|
||||||
|
|
||||||
mutex_lock(&dev->lock);
|
|
||||||
|
|
||||||
usb_set_intfdata (intf, NULL);
|
usb_set_intfdata (intf, NULL);
|
||||||
dev_dbg (&intf->dev, "disconnect\n");
|
dev_dbg (&intf->dev, "disconnect\n");
|
||||||
kfree (dev);
|
kfree (dev);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue