aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2016-08-11 10:31:14 +0800
committerGreg Kroah-Hartman <[email protected]>2016-08-11 18:31:51 +0200
commit539587511835ea12d8daa444cbed766cf2bc3612 (patch)
treeef381103150250af31d40742f9ac1481ed615b97 /lib/mpi/mpi-bit.c
parent224f6e4036f2c1c20eb8dd12906d5a9583a6224b (diff)
usb: misc: usbtest: add fix for driver hang
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: [email protected] # 3.15+ Cc: Alan Stern <[email protected]> Signed-off-by: Lu Baolu <[email protected]> Suggested-by: Alan Stern <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions