mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-26 19:14:18 +00:00
drm/vmwgfx: fix a memleak in vmw_gmrid_man_get_node
[ Upstream commit89709105a6] When ida_alloc_max fails, resources allocated before should be freed, including *res allocated by kmalloc and ttm_resource_init. Fixes:d3bcb4b02f("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9556c16767
commit
83e0f220d1
1 changed files with 4 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue