• Matthew Dharm's avatar
    [PATCH] usb-storage: catch bad commands · 6fa91667
    Matthew Dharm authored
    The purpose of this patch is to trap all commands which have a bogus
    request_bufflen.  Much logic is devoted to calculating the proper length of
    the transfer, but according to discussions I've had on linux-scsi, this is
    really a bug in whatever is originating the bad command.
    
    Hopefully, after people use this patch for a while, we'll eliminate all the
    offending sources and can remove quite a bit of logic from the driver.
    6fa91667
transport.c 41.9 KB