Skip to content
Commit a9210714 authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Alex Deucher
Browse files

drm/amd/display: Fix memory leak in dm_set_writeback()



'wb_info' needs to be freed on error paths or it would leak the memory.

Smatch pointed this out.

Fixes: c81e13b9 ("drm/amd/display: Hande writeback request from userspace")
Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ec7b2a55
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment