scd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer.

* scd/ccid-driver.c (intr_cb): Ignore LIBUSB_TRANSFER_OVERFLOW.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2021-06-23 12:08:20 +09:00
parent 2c6b62b357
commit 25ae80b8eb
1 changed files with 5 additions and 0 deletions

View File

@ -1577,6 +1577,11 @@ intr_cb (struct libusb_transfer *transfer)
}
else if (transfer->status == LIBUSB_TRANSFER_CANCELLED)
handle->powered_off = 1;
else if (transfer->status == LIBUSB_TRANSFER_OVERFLOW)
{
/* Something goes wrong. Ignore. */
DEBUGOUT ("CCID: interrupt transfer overflow\n");
}
else
{
device_removed: