]> git.baikalelectronics.ru Git - kernel.git/commit
[Bluetooth] Fix wrong URB handling of btusb driver
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Sep 2008 22:16:36 +0000 (00:16 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Sep 2008 22:16:36 +0000 (00:16 +0200)
commit283513a71480d5fc5a001e1ad18e8aca18994c9b
tree24936b533522e656e4aef9e59e6427cc942e559e
parent50b84ab47bbeb88aa3de3bc4ccebc6bb73634fe4
[Bluetooth] Fix wrong URB handling of btusb driver

The btusb driver contains two typos that result in some buggy behavior,
but the impact is not immediately visible.

During initialization the submitting of interrupt URBs might fail and
then make sure to remove the correct flag and not one of the hci_dev
flags.

When closing down the interface make sure to kill the anchor for the
ISOC URBs and not kill the interrupt URBs twice.

Also cancel any scheduled work when closing down the interface.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c