OpenCloudOS-Kernel/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
..
Kconfig [media] ivtv: mark DVB "borrowed" ioctls as deprecated 2017-02-03 07:08:24 -02:00
Makefile [media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv 2012-09-18 13:26:50 -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 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
ivtv-cards.h
ivtv-controls.c [media] cx231xx: constify cx2341x_handler_ops structures 2015-12-03 11:27:08 -02:00
ivtv-controls.h [media] cx231xx: constify cx2341x_handler_ops structures 2015-12-03 11:27:08 -02:00
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 [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ivtv-fileops.h [media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv 2012-09-18 13:26:50 -03:00
ivtv-firmware.c [media] ivtv: don't break long lines 2016-10-21 09:11:09 -02:00
ivtv-firmware.h
ivtv-gpio.c [media] pci/ivtv/ivtv-gpio: Remove compat control ops 2015-07-06 08:25:56 -03:00
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 [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
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 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
ivtv-routing.h
ivtv-streams.c [media] ivtv: disable fbuf support if ivtvfb isn't loaded 2015-04-02 23:57:51 -03:00
ivtv-streams.h [media] ivtv: embed video_device 2015-04-02 22:34:55 -03:00
ivtv-udma.c [media] ivtv: use for_each_sg 2017-04-05 15:17:15 -03:00
ivtv-udma.h
ivtv-vbi.c [media] drivers/media/pci: use memmove for overlapping regions 2013-02-05 19:26:38 -02:00
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