• Alan Stern's avatar
    usb-storage: report underflow with no sense data · 8bfa2472
    Alan Stern authored
    This patch (as1118) addresses a problem with certain USB mass-storage
    devices.  These devices sometimes return less data than asked for and
    then provide no sense data to explain the problem.  Currently
    usb-storage leaves it up to the SCSI layer to decide how this should
    be handled, and the SCSI layer interprets the lack of sense data to
    mean that nothing went wrong.  But if we got less data than required
    then something definitely _did_ go wrong, and we should say so.
    
    The patch tells the SCSI layer to retry the command when this sort of
    thing happens.  Retrying may not solve the underlying problem, but
    it's better than believing that data was transferred when it wasn't.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    8bfa2472
transport.c 37 KB