diff options
| author | Colin Ian King <[email protected]> | 2018-11-14 21:31:48 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-11-14 14:01:02 -0800 |
| commit | 46dce4042659755a2b9753369d0c2d8ca33e35cf (patch) | |
| tree | 3498d7c966eafe79b75366d1f7bd8936c39671f0 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 9d4b17efa51f3bb0918021090c09b0013039df00 (diff) | |
ASoC: amd: fix memory leak of i2s_data on error return
Currently when snd_pcm_hw_constraint_integer fails there is
a memory leak of i2s_data on the error return path. Fix this by
kfree'ing i2s_data before returning.
Detected by CoverityScan, CID#1475479 ("Resource leak")
Fixes: 0b87d6bcd648 ("ASoC: amd: add acp3x pcm driver dma ops")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions