Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:SLECandidates
pcsc-acsccid
acsccid-1.1.11-polling-unplug.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File acsccid-1.1.11-polling-unplug.patch of Package pcsc-acsccid
Index: acsccid-1.1.11/src/ccid_usb.c =================================================================== --- acsccid-1.1.11.orig/src/ccid_usb.c +++ acsccid-1.1.11/src/ccid_usb.c @@ -1931,6 +1931,8 @@ int InterruptRead(int reader_index, int libusb_free_transfer(transfer); DEBUG_CRITICAL2("libusb_submit_transfer failed: %s", libusb_error_name(ret)); + if (ret == LIBUSB_ERROR_NO_DEVICE) + return IFD_NO_SUCH_DEVICE; return IFD_COMMUNICATION_ERROR; } @@ -1950,6 +1952,8 @@ int InterruptRead(int reader_index, int libusb_free_transfer(transfer); DEBUG_CRITICAL2("libusb_handle_events failed: %s", libusb_error_name(ret)); + if (ret == LIBUSB_ERROR_NO_DEVICE) + return IFD_NO_SUCH_DEVICE; return IFD_COMMUNICATION_ERROR; } } @@ -2004,7 +2008,10 @@ int InterruptRead(int reader_index, int DEBUG_COMM4("InterruptRead (%d/%d): %d", usbDevice[reader_index].bus_number, usbDevice[reader_index].device_address, ret); - return_value = IFD_COMMUNICATION_ERROR; + if (ret == LIBUSB_TRANSFER_NO_DEVICE) + return_value = IFD_NO_SUCH_DEVICE; + else + return_value = IFD_COMMUNICATION_ERROR; } return return_value;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor