mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Fix for USB INTERRUPT transfer.
* scd/ccid-driver.c (intr_cb): When LIBUSB_TRANSFER_NO_DEVICE,
just handle this event as failure.
--
Cherry-picked from master commit:
5ab3bc422a
It used to try another interrupt transfer request to make sure
if it fails again.
GnuPG-bug-id: 4308
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
80a08b655f
commit
9dc76d599c
1 changed files with 1 additions and 2 deletions
|
@ -1470,8 +1470,7 @@ intr_cb (struct libusb_transfer *transfer)
|
|||
|
||||
DEBUGOUT_1 ("CCID: interrupt callback %d\n", transfer->status);
|
||||
|
||||
if (transfer->status == LIBUSB_TRANSFER_TIMED_OUT
|
||||
|| transfer->status == LIBUSB_TRANSFER_NO_DEVICE)
|
||||
if (transfer->status == LIBUSB_TRANSFER_TIMED_OUT)
|
||||
{
|
||||
int err;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue