linux-stable/drivers/media/pci/ivtv
Jia-Ju Bai d989dc20c5 [media] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free
The driver may sleep under a spin lock, and the function call path is:
snd_ivtv_pcm_hw_free (acquire the lock by spin_lock_irqsave)
  vfree --> may sleep

To fix it, the "substream->runtime->dma_area" is passed to a temporary
value, and mark it NULL when holding the lock. The memory is freed by
vfree through the temporary value outside the lock holding.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
[hans.verkuil@cisco.com: removed unnecessary 'if (dma_area)']
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-07 12:28:49 -03:00
..
ivtv-alsa-main.c [media] ivtv: use pr_foo() instead of calling printk() directly 2017-01-31 14:31:09 -02:00
ivtv-alsa-mixer.c [media] ivtv: prepare to convert to pr_foo() 2017-01-31 14:28:44 -02:00
ivtv-alsa-mixer.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ivtv-alsa-pcm.c [media] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free 2017-06-07 12:28:49 -03:00
ivtv-alsa-pcm.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ivtv-alsa.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ivtv-cards.c
ivtv-cards.h
ivtv-controls.c
ivtv-controls.h
ivtv-driver.c [media] ivtv: use setup_timer 2017-04-10 14:50:15 -03:00
ivtv-driver.h sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
ivtv-fileops.c
ivtv-fileops.h
ivtv-firmware.c [media] ivtv: don't break long lines 2016-10-21 09:11:09 -02:00
ivtv-firmware.h
ivtv-gpio.c
ivtv-gpio.h
ivtv-i2c.c [media] rc: Hauppauge z8f0811 can decode RC6 2016-09-22 11:44:52 -03:00
ivtv-i2c.h
ivtv-ioctl.c [media] ivtv: improve subscribe_event handling 2017-03-22 10:10:50 -03:00
ivtv-ioctl.h
ivtv-irq.c kthread: kthread worker API cleanup 2016-10-11 15:06:33 -07:00
ivtv-irq.h
ivtv-mailbox.c [media] ivtv: prepare to convert to pr_foo() 2017-01-31 14:28:44 -02:00
ivtv-mailbox.h
ivtv-queue.c [media] ivtv: steal could be NULL 2016-02-23 07:22:22 -03:00
ivtv-queue.h
ivtv-routing.c
ivtv-routing.h
ivtv-streams.c
ivtv-streams.h
ivtv-udma.c [media] ivtv: use for_each_sg 2017-04-05 15:17:15 -03:00
ivtv-udma.h
ivtv-vbi.c
ivtv-vbi.h
ivtv-version.h
ivtv-yuv.c Linux 4.9-rc5 2016-11-16 16:42:27 -02:00
ivtv-yuv.h
ivtvfb.c [media] ivtv: use pr_foo() instead of calling printk() directly 2017-01-31 14:31:09 -02:00
Kconfig [media] ivtv: mark DVB "borrowed" ioctls as deprecated 2017-02-03 07:08:24 -02:00
Makefile