[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)
commite8c3c3d22b340a406a9aab1b7a9f436636c3de9d
tree24936b533522e656e4aef9e59e6427cc942e559e
parentbdbef3d696ca83489eb653459b5a7a62ecf5596a
[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