diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index 3ce45c9e9d20dd934142cd5296bdfb70edfae92a..e6a7c86b70f250ee4077948b2bdbcb2ec3d868d4 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c @@ -1016,6 +1016,7 @@ static int usbtmc_ioctl_clear(struct usbtmc_device_data *data) do { dev_dbg(dev, "Reading from bulk in EP\n"); + actual = 0; rv = usb_bulk_msg(data->usb_dev, usb_rcvbulkpipe(data->usb_dev, data->bulk_in),