Files
linux/drivers
Zhipeng Lu 83e0f220d1 drm/vmwgfx: fix a memleak in vmw_gmrid_man_get_node
[ Upstream commit 89709105a6091948ffb6ec2427954cbfe45358ce ]

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>
2024-03-26 18:19:42 -04:00
..
2023-08-22 15:50:57 +02:00
2023-08-24 16:20:30 -07:00
2024-03-06 14:48:40 +00:00
2023-11-20 11:59:19 +01:00
2024-02-05 20:14:15 +00:00
2024-01-20 11:51:48 +01:00
2023-08-21 13:27:44 +02:00