USB: chaoskey: fix error case of a timeout
authorOliver Neukum <oneukum@suse.com>
Thu, 7 Nov 2019 14:28:55 +0000 (15:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:29:05 +0000 (18:29 +0100)
commit8836f9ccf3c93c1e41a4d6e7d1dc16e933abc837
tree9f68c204c47752d105e17803e1b1d6045979c425
parent6c27699aeb90130d052a2b961073e7208d9c59f5
USB: chaoskey: fix error case of a timeout

commit 92aa5986f4f7b5a8bf282ca0f50967f4326559f5 upstream.

In case of a timeout or if a signal aborts a read
communication with the device needs to be ended
lest we overwrite an active URB the next time we
do IO to the device, as the URB may still be active.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191107142856.16774-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/chaoskey.c