linux/drivers/media/pci/cx88
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
..
cx88-alsa.c Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
cx88-blackbird.c [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
cx88-cards.c [media] cx88: kernel bz#9476: Fix tone setting for Nova-S+ model 92001 2013-04-08 06:56:47 -03:00
cx88-core.c [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
cx88-dsp.c
cx88-dvb.c [media] cx88: kernel bz#9476: Fix tone setting for Nova-S+ model 92001 2013-04-08 06:56:47 -03:00
cx88-i2c.c [media] cx88: Replace memcpy with struct assignment 2012-12-27 19:01:51 -02:00
cx88-input.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
cx88-mpeg.c [media] cx88: Fix unsafe locking in suspend-resume 2013-04-22 10:08:30 -03:00
cx88-reg.h
cx88-tvaudio.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
cx88-vbi.c
cx88-video.c [media] cx88: Fix unsafe locking in suspend-resume 2013-04-22 10:08:30 -03:00
cx88-vp3054-i2c.c [media] cx88: Replace memcpy with struct assignment 2012-12-27 19:01:51 -02:00
cx88-vp3054-i2c.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
cx88.h [media] cx88: kernel bz#9476: Fix tone setting for Nova-S+ model 92001 2013-04-08 06:56:47 -03:00
Kconfig [media] make the other drivers take use of the new ts2020 driver 2012-12-27 19:27:15 -02:00
Makefile [media] btcx-risc: move from media/i2c to media/common 2013-02-08 16:11:25 -02:00