aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-26 15:33:14 +0800
committerThierry Reding <[email protected]>2023-04-04 14:24:28 +0200
commit8466ff24a37a9a18fb935e90dda64f049131ae28 (patch)
tree05b28eb963492bfffb43164ebef21105cd10ed33 /tools/perf/scripts/python/mem-phys-addr.py
parent791b5ecece5e6c22aa9aa55b7a9ee827a971a799 (diff)
gpu: host1x: Fix potential double free if IOMMU is disabled
If context device has no IOMMU, the 'cdl->devs' is freed in error path, but host1x_memory_context_list_init() doesn't return an error code, so the module can be loaded successfully, when it's unloading, the host1x_memory_context_list_free() is called in host1x_remove(), it will cause double free. Set the 'cdl->devs' to NULL after freeing it to avoid double free. Fixes: 8aa5bcb61612 ("gpu: host1x: Add context device management code") Signed-off-by: Yang Yingliang <[email protected]> Reviewed-by: Mikko Perttunen <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions