forked from Minki/linux
8a317a8760
The BKL conversion of this driver seems to have gone wrong. Various uses of the sub-device and driver lists appear to be subject to race conditions. In particular, some functions access drvlist without a relevant lock held, which will race against removal of drivers. Let's start with that --- clean up by consistently protecting dev->drvlist with dev->core->lock, noting driver functions that require the device lock to be held or not to be held. After this patch, there are still some races --- e.g., cx8802_blackbird_remove can run between the time the blackbird driver is acquired and the time it is used in mpeg_release, and there's a similar race in cx88_dvb_bus_ctrl. Later patches will address the remaining known races and the deadlock noticed by Andi. This patch just makes the semantics clearer in preparation for those later changes. Based on work by Ben Hutchings <ben@decadent.org.uk>. Tested-by: Andi Huber <hobrom@gmx.at> Tested-by: Marlon de Boer <marlon@hyves.nl> Cc: stable@kernel.org Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
---|---|---|
.. | ||
cx88-alsa.c | ||
cx88-blackbird.c | ||
cx88-cards.c | ||
cx88-core.c | ||
cx88-dsp.c | ||
cx88-dvb.c | ||
cx88-i2c.c | ||
cx88-input.c | ||
cx88-mpeg.c | ||
cx88-reg.h | ||
cx88-tvaudio.c | ||
cx88-vbi.c | ||
cx88-video.c | ||
cx88-vp3054-i2c.c | ||
cx88-vp3054-i2c.h | ||
cx88.h | ||
Kconfig | ||
Makefile |