]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 27 Apr 2022 21:19:31 +0000 (17:19 -0400)
commit997ac7e3674ff6da4145f5d9014192555b1ecd63
tree12bb5b46896f95e809afde41e10c570f407043a4
parent658af518cfab711ab4794dfe6c3fc39eadbbb143
drm/amd/display: Fix memory leak in dcn21_clock_source_create

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

Fixes: 333b4b38ae64 ("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