ljalves / linux_media

TBS linux open source drivers
https://github.com/ljalves/linux_media/wiki
Other
89 stars 150 forks source link

cx231xx deadlock #120

Closed smallint closed 8 years ago

smallint commented 8 years ago

I am playing currently with tbs 5990 driver support from CrazyCats repo and found a deadlock in dvb_init which should affect your repo as well.

The dev->lock mutex is being locked in https://github.com/ljalves/linux_media/blob/latest/drivers/media/usb/cx231xx/cx231xx-dvb.c#L702 (inside the loop) but only releases outside the loop. This affects only devices with more than 1 adapter. I fixed that by unlocking the mutex at the end of the loop body and locking it again after the loop. For more information see https://github.com/crazycat69/linux_media/issues/1.

The device basically works but there are some issues to be resolved. Is there anything special about the 5990 that it has not yet gotten much driver support? I don't care about CI.

smallint commented 8 years ago

Obviously no interest in it ...