aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorAndrej Shadura <[email protected]>2021-10-19 15:29:17 +0000
committerJiri Kosina <[email protected]>2021-10-27 08:17:08 +0000
commit43775e62c4b784f44a159e13ba80e6146a42d502 (patch)
treebc67d48a4bcfaea144a0b2736910c329584f317b /fs/btrfs/dev-replace.c
parentHID: u2fzero: clarify error check and length calculations (diff)
downloadkernel-43775e62c4b784f44a159e13ba80e6146a42d502.tar.gz
kernel-43775e62c4b784f44a159e13ba80e6146a42d502.zip
HID: u2fzero: properly handle timeouts in usb_submit_urb
The wait_for_completion_timeout function returns 0 if timed out or a positive value if completed. Hence, "less than zero" comparison always misses timeouts and doesn't kill the URB as it should, leading to re-sending it while it is active. Fixes: 42337b9d4d95 ("HID: add driver for U2F Zero built-in LED and RNG") Signed-off-by: Andrej Shadura <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions