diff options
| author | Jia-Ju Bai <[email protected]> | 2017-06-01 04:13:54 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-06-07 12:28:49 -0300 |
| commit | d989dc20c508cd82e2a95ff5d6c4bb091803f1c8 (patch) | |
| tree | 9b54a9d38bf04fd9e3ebe46e3d0525e89efed0e4 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | dde32d413447d7f12031d24c7898dd126e5eabe3 (diff) | |
[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 <[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