diff options
author | Pavel Machek <pavel@suse.cz> | 2008-05-03 01:45:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-03 01:45:10 +0200 |
commit | 026672d0997c911c9bef9aabe862884fc0add106 (patch) | |
tree | 6867e7e256f23102e5f73e267aa8a8b790717467 /mm/mlock.c | |
parent | dccp: ccid2.c, ccid3.c use clamp(), clamp_t() (diff) | |
download | linux-026672d0997c911c9bef9aabe862884fc0add106.tar.xz linux-026672d0997c911c9bef9aabe862884fc0add106.zip |
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>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions