• Marcel Holtmann's avatar
    [Bluetooth] Fix wrong URB handling of btusb driver · e8c3c3d2
    Marcel Holtmann authored
    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: default avatarMarcel Holtmann <marcel@holtmann.org>
    e8c3c3d2
btusb.c 22.8 KB