Message ID | 20200824211027.11543-1-trix@redhat.com |
---|---|
State | New |
Headers | show |
Series | [v2] usb: storage: initialize variable | expand |
diff --git a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c index 238a8088e17f..044429717dcc 100644 --- a/drivers/usb/storage/transport.c +++ b/drivers/usb/storage/transport.c @@ -414,6 +414,9 @@ static int usb_stor_bulk_transfer_sglist(struct us_data *us, unsigned int pipe, { int result; + if (act_len) + *act_len = 0; + /* don't submit s-g requests during abort processing */ if (test_bit(US_FLIDX_ABORTING, &us->dflags)) return USB_STOR_XFER_ERROR;