diff options
author | 2023-12-04 17:14:16 +0800 | |
---|---|---|
committer | 2024-01-03 22:23:15 -0500 | |
commit | 89709105a6091948ffb6ec2427954cbfe45358ce (patch) | |
tree | 832a448058e8c699292d50e955fc210d7e3ac3dc /tools/perf/scripts/python/stackcollapse.py | |
parent | drm/vmwgfx: fix all kernel-doc warnings in stdu (diff) | |
download | wireguard-linux-89709105a6091948ffb6ec2427954cbfe45358ce.tar.xz wireguard-linux-89709105a6091948ffb6ec2427954cbfe45358ce.zip |
drm/vmwgfx: fix a memleak in vmw_gmrid_man_get_node
When ida_alloc_max fails, resources allocated before should be freed,
including *res allocated by kmalloc and ttm_resource_init.
Fixes: d3bcb4b02fe9 ("drm/vmwgfx: switch the TTM backends to self alloc")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231204091416.3308430-1-alexious@zju.edu.cn
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions