hci_usb.h: fix hard-to-trigger race
authorPavel Machek <pavel@suse.cz>
Fri, 2 May 2008 23:45:10 +0000 (16:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 23:45:10 +0000 (16:45 -0700)
commit026672d0997c911c9bef9aabe862884fc0add106
tree6867e7e256f23102e5f73e267aa8a8b790717467
parent84994e16f25dabe234be4fc2d323ec9db95b87cb
hci_usb.h: fix hard-to-trigger race

If someone tries to _urb_unlink while _urb_queue_head is running, he'll see
_urb->queue == NULL and fail to do any locking.  Prevent that from happening
by strategically placed barriers.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/bluetooth/hci_usb.h