wjasper / Linux_Drivers

Open source Linux device drivers
GNU General Public License v3.0
111 stars 64 forks source link

Release USB interface of unmatched device #9

Closed macat closed 7 years ago

macat commented 7 years ago

We encountered a problem when starting up 2 separate processes using the find device function with serial ID. The first process claimed the interface even though it did not match the serial, then the second one could not use the already claimed devices.

By releasing the interface when the serial is not matched other processes can acquire access to the device.

wjasper commented 7 years ago

Thanks, I agree, should have released the interface if serial does not match.