]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix memory leak
authorYongzhi Liu <lyz_cs@pku.edu.cn>
Fri, 21 Jan 2022 11:26:13 +0000 (11:26 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jan 2022 23:00:33 +0000 (18:00 -0500)
commit5e9593160dfb936c0c6f9cccd44b6a05ef532ad7
treedb047b7263c77f2c2f42302ee8e40660c7cc9bca
parentc746c7bb2d7ef4ac977d2f235f1371ac4f0a72fd
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: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c