diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2011-10-26 05:13:13 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-11-07 14:24:52 -0500 |
commit | 844e4b76cc4806827024cccf35a9beaf13d27f3d (patch) | |
tree | ff8c61c9e41ce51a84143c4eedbac7c98872de9e /fs/jfs/jfs_btree.h | |
parent | 52a1020e80beece986002f673eca24dae6255b55 (diff) |
Bluetooth: bcm203x: Fix race condition on disconnect
When disconnecting a bcm203x device we kill and destroy the usb-urb, however,
there might still be a pending work-structure which resubmits the now invalid
urb. To avoid this race condition, we simply set a shutdown-flag and
synchronously kill the worker first.
This also adds a comment to all schedule_work()s, as it is really not clear
that they are used as replacement for short timers (which can be seen in the git
history).
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'fs/jfs/jfs_btree.h')
0 files changed, 0 insertions, 0 deletions