• G
    usb storage: handle long responses · fa7935c1
    Gerd Hoffmann 提交于
    The scsi layer may return us more data than the guests wants to have.
    Handle this by just ignoring the extra bytes and calling the
    {read,write}_data callback to finish the request.
    
    Seen happening in real life with some extended inquiry command.
    With this patch applied the linux kernel stops reseting the device
    once at boot.
    Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
    fa7935c1
usb-msd.c 16.8 KB