diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-09-17 06:20:44 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-10-03 17:11:06 +0300 |
commit | cabe144bfd0c106c2e55d900320c2464c42ab94c (patch) | |
tree | 0cc68fa3888a6699cad817e9faf7bd9338fe063d /drivers/gpu/drm/amd/display/dc/dce112 | |
parent | 2e0db9dec25f8d60acb61ddc1a48cbbcabdbdd19 (diff) | |
download | linux-cabe144bfd0c106c2e55d900320c2464c42ab94c.tar.xz |
drm/amd/display: memory leak
In dcn*_clock_source_create when dcn20_clk_src_construct fails allocated
clk_src needs release.
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce112')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c index 83e1878161c9..21a657e79306 100644 --- a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c @@ -687,6 +687,7 @@ struct clock_source *dce112_clock_source_create( return &clk_src->base; } + kfree(clk_src); BREAK_TO_DEBUGGER(); return NULL; } |