diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-04 13:41:47 +0100 |
---|---|---|
committer | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-04 13:41:47 +0100 |
commit | 90f7453adee2bcad39c6630b760358eb799f238d (patch) | |
tree | 928c8d75b4776e73ca65dd11028f2e9526d1c7d3 /linux/drivers/media/video/saa7134 | |
parent | d8eae1def78bd2a6dfa017145311a249c7aa3bc6 (diff) | |
download | mediapointer-dvb-s2-90f7453adee2bcad39c6630b760358eb799f238d.tar.gz mediapointer-dvb-s2-90f7453adee2bcad39c6630b760358eb799f238d.tar.bz2 |
Fix mutex in dvb_register_device to work.
From: Andrew de Quincey <adq_dvb@lidskialf.net>
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.
Solution: move the mutex after the list_add.
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>
Diffstat (limited to 'linux/drivers/media/video/saa7134')
0 files changed, 0 insertions, 0 deletions