[Pcsclite-cvs-commit] r6049 - /trunk/Drivers/ccid/src/ccid_usb.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Oct 20 14:01:27 UTC 2011


Author: rousseau
Date: Thu Oct 20 14:01:27 2011
New Revision: 6049

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6049
Log:
InterruptStop(): Do not interrupt two times (or more) the same libusb
transfer

This can happen within SCardDisconnect() on the same reader from 2 or
more threads/processes. This is the case with
PCSC.work/UnitaryTests/ThreadSafeConnect.py

Modified:
    trunk/Drivers/ccid/src/ccid_usb.c

Modified: trunk/Drivers/ccid/src/ccid_usb.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid_usb.c?rev=6049&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid_usb.c (original)
+++ trunk/Drivers/ccid/src/ccid_usb.c Thu Oct 20 14:01:27 2011
@@ -1134,6 +1134,7 @@
 	struct libusb_transfer *transfer;
 
 	transfer = usbDevice[reader_index].polling_transfer;
+	usbDevice[reader_index].polling_transfer = NULL;
 	if (transfer)
 	{
 		int ret;




More information about the Pcsclite-cvs-commit mailing list