• Oliver Neukum's avatar
    [PATCH] USB: correct error handling in usb_driver_claim_interface() · 9496c745
    Oliver Neukum authored
    this function races with itself, doesn't return errors and races with
    releasing interfaces. This patch fixes it by changing the function
    prototype, introducing locking and having a correct order in
    releasing interfaces.
    
      - API change to check errors in usb_driver_claim_interface and
        fix a race condition between releasing and reclaiming an interface
    9496c745
usb.c 43.5 KB