linux/drivers/media/pci
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
..
b2c2
bt8xx Linux 3.9-rc5 2013-04-01 09:54:14 -03:00
cx18 [media] ioctl numbers are unsigned int 2013-03-29 08:18:36 -03:00
cx88 [media] cx88: Fix unsafe locking in suspend-resume 2013-04-22 10:08:30 -03:00
cx23885 [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
cx25821 [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
ddbridge Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
dm1105 Merge branch 'v4l_for_linus' into staging/for_v3.9 2013-01-24 18:49:18 -02:00
ivtv [media] ioctl numbers are unsigned int 2013-03-29 08:18:36 -03:00
mantis Merge branch 'v4l_for_linus' into staging/for_v3.9 2013-01-24 18:49:18 -02:00
meye [media] ioctl numbers are unsigned int 2013-03-29 08:18:36 -03:00
ngene Merge branch 'v4l_for_linus' into staging/for_v3.9 2013-01-24 18:49:18 -02:00
pluto2 Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
pt1 Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
saa7134 [media] saa7134: v4l2-compliance: clear reserved part of VBI structure 2013-04-14 19:41:34 -03:00
saa7146 [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
saa7164 [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
sta2x11 [media] sta2x11_vip: Fix compilation if I2C is not set 2013-04-16 20:06:34 -03:00
ttpci [media] budget: Add support for Philips Semi Sylt PCI ref. design 2013-04-08 07:28:01 -03:00
zoran [media] zoran: Don't print proc_dir_entry data in debug [RFC] 2013-04-16 18:27:44 -03:00
Kconfig
Makefile