summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btmrvl_main.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-10-01 22:44:50 +0300
committerMarcel Holtmann <marcel@holtmann.org>2013-10-01 23:27:08 -0700
commite1d08f406792219ace03aa02e53a6946abc15ec8 (patch)
tree0da4305a8246c93e233b71783913205b3bdb0dd4 /drivers/bluetooth/btmrvl_main.c
parentcbed0ca137ef442c545602a09030bbb35d8db013 (diff)
downloadop-kernel-dev-e1d08f406792219ace03aa02e53a6946abc15ec8.zip
op-kernel-dev-e1d08f406792219ace03aa02e53a6946abc15ec8.tar.gz
Bluetooth: Fix workqueue synchronization in hci_dev_open
When hci_sock.c calls hci_dev_open it needs to ensure that there isn't pending work in progress, such as that which is scheduled for the initial setup procedure or the one for automatically powering off after the setup procedure. This adds the necessary calls to ensure that any previously scheduled work is completed before attempting to call hci_dev_do_open. This patch fixes a race with old user space versions where we might receive a HCIDEVUP ioctl before the setup procedure has been completed. When that happens the setup procedures callback may fail early and leave the device in an inconsistent state, causing e.g. the setup callback to be (incorrectly) called more than once. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btmrvl_main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud