Searched hist:"43775 e62" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/hid/ |
H A D | hid-u2fzero.c | 43775e62 Tue Oct 19 10:29:17 CDT 2021 Andrej Shadura <andrew.shadura@collabora.co.uk> 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 <andrew.shadura@collabora.co.uk> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|