summaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2016-08-11 10:31:14 +0800
committerSasha Levin <alexander.levin@verizon.com>2016-08-31 19:21:09 -0400
commit1a8eadfa9c79c3d1b780e8081cc1e5e242f1632d (patch)
tree43e10c6a0b98d837e4e47d461d293fa661bf505b /drivers/usb/class
parent79e3a23fe5a319e5799f12585f6a74d1214c66c7 (diff)
usb: misc: usbtest: add fix for driver hang
[ Upstream commit 539587511835ea12d8daa444cbed766cf2bc3612 ] In sg_timeout(), req->status is set to "-ETIMEDOUT" before calling into usb_sg_cancel(). usb_sg_cancel() will do nothing and return directly if req->status has been set to a non-zero value. This will cause driver hang whenever transfer time out is triggered. This patch fixes this issue. It could be backported to stable kernel with version later than v3.15. Cc: stable@vger.kernel.org # 3.15+ Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Suggested-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'drivers/usb/class')
0 files changed, 0 insertions, 0 deletions