drm/amd/display: Fix memory leak in dcn21_clock_source_create
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 21 Apr 2022 09:03:09 +0000 (17:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Apr 2022 19:59:52 +0000 (15:59 -0400)
commite4f1e3a282c17cffba6fc7ad316387d5499550d0
tree2c363a121ea67852affbba3b293617a7246bc630
parent754fc1824be6e279b410b411554c87ba0d15d93e
drm/amd/display: Fix memory leak in dcn21_clock_source_create

When dcn20_clk_src_construct() fails, we need to release clk_src.

Fixes: 6f4e6361c3ff ("drm/amd/display: Add Renoir resource (v2)")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c