From: Pavel Machek Date: Fri, 2 May 2008 23:45:10 +0000 (-0700) Subject: hci_usb.h: fix hard-to-trigger race X-Git-Tag: v2.6.26-rc1~5^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026672d0997c911c9bef9aabe862884fc0add106;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed