projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cfab02
)
USB: testing driver: don't free a locked mutex
author
Andrew Morton
<akpm@linux-foundation.org>
Fri, 14 Dec 2007 00:15:34 +0000
(16:15 -0800)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/usbtest.c
b/drivers/usb/misc/usbtest.c
index e3851359d6537ed7d7b55a67672e621b52dd4f7f..f1b886c204c0c2ceb51d006681285b270643f3f5 100644
(file)
--- a/
drivers/usb/misc/usbtest.c
+++ b/
drivers/usb/misc/usbtest.c
@@
-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);