Andrej Shadura
d3dd1a057c
HID: u2fzero: properly handle timeouts in usb_submit_urb
...
[ Upstream commit 43775e62c4b784f44a159e13ba80e6146a42d502 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-17 09:48:43 +01:00
..
2021-09-22 12:26:25 +02:00
2020-06-24 17:50:23 +02:00
2021-10-06 15:42:39 +02:00
2019-08-05 14:37:15 +02:00
2019-05-30 11:26:32 -07:00
2021-04-28 13:19:15 +02:00
2021-10-17 10:42:33 +02:00
2019-06-05 17:36:37 +02:00
2020-02-01 09:34:41 +00:00
2019-05-21 10:50:45 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-10-06 15:42:39 +02:00
2020-03-21 08:11:49 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:36:37 +02:00
2021-07-14 16:53:16 +02:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2019-08-19 14:13:00 +02:00
2019-09-03 16:52:04 +02:00
2020-12-02 08:49:47 +01:00
2021-06-18 09:58:57 +02:00
2019-10-03 15:36:40 -04:00
2020-09-17 13:47:48 +02:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:04 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2021-04-28 13:19:15 +02:00
2021-06-18 09:58:58 +02:00
2019-05-30 11:26:32 -07:00
2019-08-05 14:18:42 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-10-01 14:49:41 -04:00
2019-05-30 11:26:32 -07:00
2021-06-18 09:58:58 +02:00
2021-09-22 12:26:22 +02:00
2020-12-02 08:49:47 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:10 +02:00
2019-08-22 17:11:58 +02:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2017-11-02 11:10:55 +01:00
2019-08-22 09:53:08 +02:00
2017-11-02 11:10:55 +01:00
2019-10-03 15:36:40 -04:00
2021-03-17 17:03:43 +01:00
2020-12-02 08:49:48 +01:00
2019-04-03 17:14:13 +02:00
2021-06-10 13:37:10 +02:00
2019-01-14 20:11:01 +01:00
2021-03-11 14:06:50 +01:00
2020-09-17 13:47:48 +02:00
2019-05-30 11:26:32 -07:00
2021-06-18 09:58:58 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-08-22 17:11:58 +02:00
2019-06-05 17:30:28 +02:00
2019-06-28 12:30:08 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-05-30 11:26:35 -07:00
2021-05-14 09:44:26 +02:00
2019-06-05 17:36:37 +02:00
2019-10-01 16:21:04 +02:00
2021-06-18 09:58:58 +02:00
2018-06-25 15:23:40 +02:00
2019-05-30 11:26:32 -07:00
2020-01-04 19:18:13 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-10-29 09:57:39 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-14 16:09:19 +03:00
2021-06-18 09:58:58 +02:00
2019-05-30 11:26:35 -07:00
2020-06-07 13:18:47 +02:00
2019-05-30 11:26:32 -07:00
2020-07-29 10:18:36 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:19 -07:00
2021-11-17 09:48:43 +01:00
2020-12-02 08:49:46 +01:00
2020-12-02 08:49:46 +01:00
2019-02-21 12:00:54 +01:00
2019-02-21 12:00:54 +01:00
2019-02-21 12:00:54 +01:00
2019-06-05 17:36:37 +02:00
2019-02-21 12:00:53 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2020-01-17 19:48:15 +01:00
2019-09-23 12:18:13 -07:00
2019-09-03 16:52:04 +02:00
2020-01-17 19:48:15 +01:00
2021-01-30 13:54:10 +01:00
2021-10-17 10:42:33 +02:00
2021-07-14 16:53:19 +02:00
2019-11-06 21:37:29 +01:00