linux/drivers/media/pci/cx18
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
..
Kconfig
Makefile
cx18-alsa-main.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-alsa-mixer.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-alsa-mixer.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-alsa-pcm.c [media] cx18: Fix a sleep-in-atomic bug in snd_cx18_pcm_hw_free 2017-06-07 12:28:50 -03:00
cx18-alsa-pcm.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-alsa.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-audio.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-audio.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-av-audio.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-av-core.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-av-core.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-av-firmware.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-av-vbi.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-cards.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-cards.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-controls.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-controls.h [media] cx231xx: constify cx2341x_handler_ops structures 2015-12-03 11:27:08 -02:00
cx18-driver.c [media] tveeprom: get rid of unused arg on tveeprom_hauppauge_analog() 2017-03-03 07:35:02 -03:00
cx18-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
cx18-dvb.c [media] cx18: fix spelling mistake: "demodualtor" -> "demodulator" 2017-06-06 07:30:36 -03:00
cx18-dvb.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-fileops.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-fileops.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-firmware.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-firmware.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-gpio.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-gpio.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-i2c.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-i2c.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-io.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-io.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-ioctl.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-ioctl.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-irq.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-irq.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-mailbox.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-mailbox.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-queue.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-queue.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-scb.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-scb.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-streams.c [media] cx18: use setup_timer 2017-04-10 14:48:01 -03:00
cx18-streams.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-vbi.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-vbi.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-version.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-video.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx18-video.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx23418.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00