summaryrefslogtreecommitdiff
path: root/lib/error-inject.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2019-03-12 10:51:42 +0100
committerKalle Valo <kvalo@codeaurora.org>2019-04-25 19:40:53 +0300
commite383c70474db32b9d4a3de6dfbd08784d19e6751 (patch)
treed8af3360d26de89f63b8484331ef9609d8d757b6 /lib/error-inject.c
parentbb3b18c925333695261ccaad84c0edc100a4d9e2 (diff)
rt2x00: check number of EPROTO errors
Some USB host devices/drivers on some conditions can always return EPROTO error on submitted URBs. That can cause infinity loop in the rt2x00 driver. Since we can have single EPROTO errors we can not mark as device as removed to avoid infinity loop. However we can count consecutive EPROTO errors and mark device as removed if get lot of it. I choose number 10 as threshold. Reported-and-tested-by: Randy Oostdyk <linux-kernel@oostdyk.com> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'lib/error-inject.c')
0 files changed, 0 insertions, 0 deletions