summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHuihui Huang <hhhuang@smu.edu.sg>2026-04-16 21:24:50 +0800
committerSakari Ailus <sakari.ailus@linux.intel.com>2026-05-20 13:21:42 +0300
commit12ea58282087b9df896fd0a43a92fa83e56b33c9 (patch)
tree0a41ff8c2e54c968f3660790fdaacf328344603f /tools/perf/scripts/python
parent63c9b7def874b28471c5c75151cb43e8f10a9fa2 (diff)
staging: media: atomisp: fix map and vmap leaks in stat buffer allocation
There are memory leaks in drivers/staging/media/atomisp/pci/atomisp_compat_css20.c. In atomisp_css_allocate_stat_buffers(), s3a_map is allocated by ia_css_isp_3a_statistics_map_allocate() and its backing memory is mapped via hmm_vmap(). When dis_buf allocation fails, the error path frees s3a_data but does not unmap or free s3a_map. Similarly, when md_buf allocation fails, neither s3a_map nor dvs_map (and their hmm vmaps) are freed. Add the missing hmm_vunmap() and map free calls on both error paths, matching the cleanup order used in atomisp_css_free_3a_buffer() and atomisp_css_free_dis_buffer(). Signed-off-by: Huihui Huang <hhhuang@smu.edu.sg> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions