kernel-fxtec-pro1x/drivers/media/video/cx88
Jonathan Nieder 1fe70e9630 [media] cx88: fix locking of sub-driver operations
The BKL conversion of this driver seems to have gone wrong.
Loading the cx88-blackbird driver deadlocks.

The cause: mpeg_ops::open in the cx2388x blackbird driver acquires the
device lock and calls the sub-driver's request_acquire, which tries to
acquire the lock again.  Fix it by clarifying the semantics of
request_acquire, request_release, advise_acquire, and advise_release:
now all will rely on the caller to acquire the device lock.

Based on work by Ben Hutchings <ben@decadent.org.uk>.

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=31962

Reported-by: Andi Huber <hobrom@gmx.at>
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>
2011-05-20 09:29:36 -03:00
..
cx88-alsa.c [media] cx88-alsa: fix compiler warning 2011-03-22 04:54:03 -03:00
cx88-blackbird.c [media] cx88: fix locking of sub-driver operations 2011-05-20 09:29:36 -03:00
cx88-cards.c [media] cx88: add support for TeVii S464 PCI card 2011-03-21 20:32:27 -03:00
cx88-core.c V4L/DVB: videobuf: add queue argument to videobuf_waiton() 2010-10-21 01:06:14 -02:00
cx88-dsp.c V4L/DVB: drivers/media: Make static data tables and strings const 2010-10-21 01:04:52 -02:00
cx88-dvb.c [media] cx88: fix locking of sub-driver operations 2011-05-20 09:29:36 -03:00
cx88-i2c.c [media] cx88: Remove the obsolete i2c_adapter.id field 2010-12-30 12:17:19 -02:00
cx88-input.c [media] Fix cx88 remote control input 2011-05-04 16:30:20 -03:00
cx88-mpeg.c [media] cx88: fix locking of sub-driver operations 2011-05-20 09:29:36 -03:00
cx88-reg.h
cx88-tvaudio.c [media] Add proper audio support for Nova-S Plus with wm8775 ADC 2011-03-21 20:32:19 -03:00
cx88-vbi.c V4L/DVB: drivers/media: Make static data tables and strings const 2010-10-21 01:04:52 -02:00
cx88-video.c [media] use pci_dev->revision 2011-05-20 07:26:16 -03:00
cx88-vp3054-i2c.c [media] cx88: Remove the obsolete i2c_adapter.id field 2010-12-30 12:17:19 -02:00
cx88-vp3054-i2c.h
cx88.h [media] cx88: fix locking of sub-driver operations 2011-05-20 09:29:36 -03:00
Kconfig [media] rc: rename the remaining things to rc_core 2010-12-29 08:16:50 -02:00
Makefile