• Duncan Sands's avatar
    [PATCH] USB usbfs: drop pointless racy check · 16443d6c
    Duncan Sands authored
    The check of interface->dev.driver requires a lock to be taken
    to protect against driver binding changes.  But in fact I think it
    is better just to drop the test.  The result is that the caller is
    required to claim an interface before changing the altsetting,
    which is consistent with the other routines that operate on
    interfaces.
    
     devio.c |    6 ++----
     1 files changed, 2 insertions(+), 4 deletions(-)
    16443d6c
devio.c 33.1 KB