summaryrefslogtreecommitdiff
path: root/drivers/usb/common/common.c
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2016-08-11 05:31:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-07 09:32:38 +0300
commit97b23f9de12f36cd8f50201f4572bf80cdc6becf (patch)
tree8fcbbf1e2f4d42e60f9c4a1c5143d4e21edb722a /drivers/usb/common/common.c
parentcb68ec1ce547aef16a9f257ce025b2489c59f227 (diff)
downloadlinux-97b23f9de12f36cd8f50201f4572bf80cdc6becf.tar.xz
usb: misc: usbtest: add fix for driver hang
commit 539587511835ea12d8daa444cbed766cf2bc3612 upstream. 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: 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>
Diffstat (limited to 'drivers/usb/common/common.c')
0 files changed, 0 insertions, 0 deletions