linux/drivers/media
Alexey Khoroshilov 5ddfbbb9ca [media] cx88: Fix unsafe locking in suspend-resume
Legacy PCI suspend-resume handlers are called with interrupts enabled.

But cx8800_suspend/cx8800_resume and
cx8802_suspend_common/cx8802_resume_common use spin_lock/spin_unlock
functions to acquire dev->slock, while the same lock is acquired in the
corresponding irq-handlers: cx8800_irq and cx8802_irq.

That means a deadlock is possible if an interrupt happens while suspend
or resume owns the lock. The patch replaces spin_lock/spin_unlock with
spin_lock_irqsave/spin_unlock_irqrestore.

Found by Linux Driver Verification project (linuxtesting.org).

[mchehab@redhat.com: Fix CodingStyle]
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-04-22 10:08:30 -03:00
..
common [media] media: Fix randconfig error 2013-04-14 20:04:08 -03:00
dvb-core [media] tuner-core/simple: get_rf_strength can be tuner mode specific 2013-04-14 19:44:50 -03:00
dvb-frontends [media] lg2160: dubious one-bit signed bitfield 2013-04-22 10:04:20 -03:00
firewire [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
i2c [media] adv7180: fix querystd() method for no input signal 2013-04-14 20:05:05 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
pci [media] cx88: Fix unsafe locking in suspend-resume 2013-04-22 10:08:30 -03:00
platform [media] soc-camera: fix typos in the default format-conversion table 2013-04-14 20:15:43 -03:00
radio Revert "[media] v4l2: Add a V4L2 driver for SI476X MFD" 2013-04-17 06:05:18 -03:00
rc [media] mceusb: add some missing cmd sizes 2013-04-16 18:53:34 -03:00
tuners [media] it913x: rename its tuner driver to tuner_it913x 2013-04-16 20:06:05 -03:00
usb [media] it913x: rename its tuner driver to tuner_it913x 2013-04-16 20:06:05 -03:00
v4l2-core [media] media: vb2: add length check for mmap 2013-04-14 22:37:26 -03:00
Kconfig Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: implement 32-on-64 bit compat IOCTL handling 2013-03-18 20:45:14 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00