summaryrefslogtreecommitdiff
path: root/Documentation/digsig.txt
diff options
context:
space:
mode:
authorAndrej Shadura <andrew.shadura@collabora.co.uk>2021-10-19 17:29:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-17 09:48:43 +0100
commitd3dd1a057c9a5bb61ad29cba03c313faa4ae1a3f (patch)
tree14402bf84d1bd4c7589b266112e577507031dbb6 /Documentation/digsig.txt
parentb216a39b3212afe141ad06fdde5f440e66b4c431 (diff)
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>
Diffstat (limited to 'Documentation/digsig.txt')
0 files changed, 0 insertions, 0 deletions