Skip to content
Snippets Groups Projects
Commit 89709105 authored by Zhipeng Lu's avatar Zhipeng Lu Committed by Zack Rusin
Browse files

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: d3bcb4b0 ("drm/vmwgfx: switch the TTM backends to self alloc")
Signed-off-by: default avatarZhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: default avatarZack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231204091416.3308430-1-alexious@zju.edu.cn
parent 834b1d72
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment