summaryrefslogtreecommitdiffstats
path: root/usr/gen_init_cpio.c
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@163.com>2017-06-01 04:17:51 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-07 12:28:50 -0300
commita3dbff6eecad72333bae656681331aab27adee4d (patch)
tree8d45015d2cc3f36ca0f76e68571e3f831aa132cf /usr/gen_init_cpio.c
parentd989dc20c508cd82e2a95ff5d6c4bb091803f1c8 (diff)
downloadlinux-a3dbff6eecad72333bae656681331aab27adee4d.tar.bz2
[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>
Diffstat (limited to 'usr/gen_init_cpio.c')
0 files changed, 0 insertions, 0 deletions