Thread (3 messages) 3 messages, 2 authors, 2012-01-12

Re: [PATCH] HID: usbhid: fix dead lock between open and disconect

From: Oliver Neukum <hidden>
Date: 2012-01-12 09:53:00

Am Donnerstag, 12. Januar 2012, 10:42:22 schrieb Ming Lei:
There is no reason to hold hiddev->existancelock before
calling usb_deregister_dev, so move it out of the lock.

The patch fixes the lockdep warning below [1].

[1], lockdep warning
Hi,

you should however hold the lock while you unset hiddev->exist
and you should unset hiddev->exist before you call usb_deregister_dev().
So the diagnosis is very good, but the patch needs a bit elaboration.

	Regards
		Oliver
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help