mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 10:01:00 +00:00
drm/amd/display: Fix memory leak in dcn21_clock_source_create
[ Upstream commit65e5498750
] When dcn20_clk_src_construct() fails, we need to release clk_src. Fixes:6f4e6361c3
("drm/amd/display: Add Renoir resource (v2)") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ce9be3baec
commit
815b847af9
1 changed files with 1 additions and 0 deletions
|
@ -1428,6 +1428,7 @@ static struct clock_source *dcn21_clock_source_create(
|
|||
return &clk_src->base;
|
||||
}
|
||||
|
||||
kfree(clk_src);
|
||||
BREAK_TO_DEBUGGER();
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue