diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-07-05 10:16:37 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-05 18:58:51 +0200 |
commit | b90bab3b1b1b6c56dd6f9d5c960932239f36f6d3 (patch) | |
tree | 394ad5edeffcaec3b36c08b1a2f6384d6190d534 /mm/gup.c | |
parent | ASoC: sunxi: sun50i-codec-analog: Add earpiece (diff) | |
download | linux-b90bab3b1b1b6c56dd6f9d5c960932239f36f6d3.tar.xz linux-b90bab3b1b1b6c56dd6f9d5c960932239f36f6d3.zip |
ASoC: SOF: debug: fix possible memory leak in sof_dfsentry_write()
'string' is malloced in sof_dfsentry_write() and should be freed
before leaving from the error handling cases, otherwise it will cause
memory leak.
Fixes: 091c12e1f50c ("ASoC: SOF: debug: add new debugfs entries for IPC flood test")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20190705081637.157169-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm/gup.c')
0 files changed, 0 insertions, 0 deletions