Protect against segfault if device is closed or ftdi context is invalid
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 19 Feb 2010 22:14:04 +0000 (23:14 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 19 Feb 2010 22:14:04 +0000 (23:14 +0100)
commit8970ed7e36f5f4aa85dd5c3a47ee5d2e1044a870
tree83dce4e6f1eab9bb231999180b80cfff2ed7e7a6
parenta03fea794af90cd97514f35f212691f8b5b3700d
Protect against segfault if device is closed or ftdi context is invalid

This will help mulithreaded applications which do proper
locking around the ftdi_xxx() functions and one thread
already closed the USB device -> Zonk!

Thanks to Thomas Klose for reporting the issue.
src/ftdi.c