aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJia-Ju Bai <[email protected]>2017-06-01 04:17:51 -0300
committerMauro Carvalho Chehab <[email protected]>2017-06-07 12:28:50 -0300
commita3dbff6eecad72333bae656681331aab27adee4d (patch)
tree8d45015d2cc3f36ca0f76e68571e3f831aa132cf /tools/perf/scripts/python/call-graph-from-postgresql.py
parentd989dc20c508cd82e2a95ff5d6c4bb091803f1c8 (diff)
[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 <[email protected]> [[email protected]: removed unnecessary 'if (dma_area)'] Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions