Skip to content
Commit 40efb09a authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Thomas Hellstrom
Browse files

drm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add



In vmw_cmdbuf_res_add if drm_ht_insert_item fails the allocated memory
for cres should be released.

Fixes: 18e4a466 ("drm/vmwgfx: Fix compat shader namespace")
Signed-off-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
parent 0d4c19f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment