summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-10-26 11:13:13 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-31 17:51:37 -0200
commitfc501ad7a10a356819505b1e526079d47fdebc2c (patch)
tree3eae55cf4945ac834e40c5cde95555b610084ded /COPYING
parent0ba22bb258341783939ed07bf7e7a9d92f3b0edf (diff)
downloadop-kernel-dev-fc501ad7a10a356819505b1e526079d47fdebc2c.zip
op-kernel-dev-fc501ad7a10a356819505b1e526079d47fdebc2c.tar.gz
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 'COPYING')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud