diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-04 09:41:47 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-05-12 19:54:37 -0300 |
commit | f47f4763cde162656448fcd1ada9d5e8101a00d2 (patch) | |
tree | 0c97ba901c2df64d1cd7e28567464351c9f6b3a1 /drivers/media/dvb/ttpci | |
parent | 3203f94a25ea04b3052d22c7be9518538862d88f (diff) | |
download | blackbird-op-linux-f47f4763cde162656448fcd1ada9d5e8101a00d2.tar.gz blackbird-op-linux-f47f4763cde162656448fcd1ada9d5e8101a00d2.zip |
V4L/DVB (3725): Fix mutex in dvb_register_device to work.
This mutex is meant to stop two devices getting the same ID. dvbdev_get_free_id()
scans the list of already allocated devices to find a free id.
Unfortunately, since the mutex is unlocked before the card is added to the
above list, it is still possible for two of them to get the same id.
Its debatable whether this mutex lock is actually needed, but I'm unwilling
to just remove it in case something does depend on it.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci')
0 files changed, 0 insertions, 0 deletions