linux/drivers/media/pci
Jia-Ju Bai a3dbff6eec [media] cx18: Fix a sleep-in-atomic bug in snd_cx18_pcm_hw_free
The driver may sleep under a spin lock, and the function call path is:
snd_cx18_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:50 -03:00
..
b2c2 [media] b2c2: fix spelling mistake: "Contunuity" -> "Continuity" 2017-01-30 15:45:34 -02:00
bt8xx [media] bt8xx: add missing break 2017-05-19 07:08:25 -03:00
cobalt [media] cobalt: fix unchecked return values 2017-06-06 07:29:15 -03:00
cx18 [media] cx18: Fix a sleep-in-atomic bug in snd_cx18_pcm_hw_free 2017-06-07 12:28:50 -03:00
cx88 [media] cx88: Fix regression in initial video standard setting 2017-06-06 07:26:25 -03:00
cx23885 [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
cx25821 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ddbridge [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
dm1105 [media] media: pci: constify stv0299_config structures 2017-04-17 13:04:18 -03:00
dt3155 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ivtv [media] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free 2017-06-07 12:28:49 -03:00
mantis [media] pci: mantis: constify mb86a16_config structure 2017-04-17 12:53:03 -03:00
meye [media] media: pci: meye: set error code on failures 2017-02-03 08:01:30 -02:00
netup_unidvb [media] netup_unidvb: use setup_timer 2017-04-10 14:50:50 -03:00
ngene [media] ngene: drop ngene_link_reset() 2017-02-03 11:35:59 -02:00
pluto2 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
pt1 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
pt3 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
saa7134 [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
saa7146 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
saa7164 [media] saa7164: fix double fetch PCIe access condition 2017-06-06 16:55:50 -03:00
smipcie [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
solo6x10 [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
sta2x11 [media] media: pci: constify vb2_ops structure 2017-02-03 14:23:39 -02:00
ttpci [media] av7110: avoid switch fall through 2017-05-19 09:01:24 -03:00
tw68 [media] tw68: don't break long lines 2016-10-21 09:29:44 -02:00
tw686x [media] tw686x: silent -Wformat-security warning 2017-02-03 07:20:19 -02:00
tw5864 [media] tw5864: use dev_warn instead of WARN to shut up warning 2017-03-22 10:12:54 -03:00
zoran [media] zoran: annotate switch fall through 2017-05-19 09:02:13 -03:00
Kconfig [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00
Makefile [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00