linux_dsm_epyc7002/drivers/media
Guennadi Liakhovetski 7d051b35d5 [media] soc-camera: properly fix camera probing races
The recently introduced host_lock causes lockdep warnings, besides, list
enumeration in scan_add_host() must be protected by holdint the list_lock.
OTOH, holding .video_lock in soc_camera_open() isn't enough to protect
the host during its building of the pipeline, because .video_lock is per
soc-camera device. If, e.g. more than one sensor can be attached to a host
and the user tries to open both device nodes simultaneously, host's .add()
method can be called simultaneously for both sensors. Fix these problems
by holding list_lock instead of .host_lock in scan_add_host() and taking
it shortly at the beginning of soc_camera_open(), and using .host_lock to
protect host's .add() and .remove() operations only.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-01-05 01:35:35 -02:00
..
common [media] media: saa7146: don't use mutex_lock_interruptible() in device_release() 2012-12-27 17:34:28 -02:00
dvb-core [media] it913x: add support for Avermedia A835B 2012-12-27 19:13:30 -02:00
dvb-frontends [media] m88rs2000: make use ts2020 2012-12-28 21:37:36 -02:00
firewire [media] remove include/linux/dvb/dmx.h 2012-10-19 07:29:17 -03:00
i2c [media] mt9v022: fix potential NULL pointer dereference in mt9v022_probe() 2013-01-05 01:34:59 -02:00
mmc [media] siano: fix RC compilation 2012-11-07 11:09:08 +01:00
parport [media] Add missing help for some menuconfig items 2012-08-21 08:17:37 -03:00
pci [media] m88rs2000: make use ts2020 2012-12-28 21:37:36 -02:00
platform [media] soc-camera: properly fix camera probing races 2013-01-05 01:35:35 -02:00
radio [media] media: add driver for Masterkit MA901 usb radio 2012-12-28 12:20:33 -02:00
rc [media] media/rc: fix oops on unloading module rc-core 2012-12-27 17:45:40 -02:00
tuners [media] tuners/tda18271: Replace memcpy with struct assignment 2012-12-27 19:01:13 -02:00
usb [media] em28xx: declare em28xx_stop_streaming as static 2013-01-05 01:32:18 -02:00
v4l2-core [media] v4l: Reset subdev v4l2_dev field to NULL if registration fails 2013-01-05 01:25:22 -02:00
Kconfig [media] Improve media Kconfig menu 2012-12-27 18:40:09 -02:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c
media-devnode.c [media] media-devnode: Replace printk with pr_* 2012-09-27 14:19:23 -03:00
media-entity.c