linux/drivers/media
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
..
common [media] NXP TDA18212HN silicon tuner driver 2011-05-20 09:26:57 -03:00
dvb [media] Fix panic on loading earth-pt1 2011-05-20 09:29:33 -03:00
radio [media] wl128x: Remove unused NO_OF_ENTRIES_IN_ARRAY macro 2011-05-20 09:28:37 -03:00
rc [media] mceusb: Formosa e017 device has no tx 2011-05-20 09:27:37 -03:00
video [media] cx88: fix locking of sub-driver operations 2011-05-20 09:29:36 -03:00
Kconfig
Makefile
media-device.c
media-devnode.c
media-entity.c [media] media: Properly handle link flags in link setup, link notify callback 2011-04-17 07:43:32 -03:00