On Tue, 2019-01-22 at 18:30 -0500, Douglas Gilbert wrote:
> This patchset needs something like the following if UAS (USB Attached
> SCSI) is configured in your kernel.
> 
> Beware of tabs/spaces/line_wraps as this is a cut and paste:
> 
> diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
> index 36742e8e7edc..24f3f95917a5 100644
> --- a/drivers/usb/storage/uas.c
> +++ b/drivers/usb/storage/uas.c
> @@ -401,9 +401,9 @@ static void uas_data_cmplt(struct urb *urb)
>                  if (status != -ENOENT && status != -ECONNRESET && status != 
> -ESHUTDOWN)
>                          uas_log_cmd_state(cmnd, "data cmplt err", status);
>                  /* error: no data transfered */
> -               sdb->resid = sdb->length;
> +               scsi_in_set_resid(cmnd, sdb->length);
>          } else {
> -               sdb->resid = sdb->length - urb->actual_length;
> +               scsi_in_set_resid(cmnd, sdb->length - urb->actual_length);
>          }
>          uas_try_complete(cmnd, __func__);
>   out:

Thanks Doug! I will fold a slightly modified version of this patch in. BTW,
does this mean that you have been able to test this patch series?

Bart.

Reply via email to