Skip to content
Commit 5d5c6dba authored by Yongzhi Liu's avatar Yongzhi Liu Committed by Alex Deucher
Browse files

drm/amd/display: Fix memory leak



[why]
Resource release is needed on the error handling path
to prevent memory leak.

[how]
Fix this by adding kfree on the error handling path.

Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarYongzhi Liu <lyz_cs@pku.edu.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1418b9c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment