]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/display: prevent memory leak
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Wed, 25 Sep 2019 04:23:56 +0000 (23:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 08:06:00 +0000 (10:06 +0200)
commit60e1b411bf0fd9fda2d2de7f45dc3b1d9960b85e
treed4257794858651a8102f97360fcd7551506088f2
parente0cf3ebfcf93dbce123b8bef00f549712efe1135
drm/amd/display: prevent memory leak

[ Upstream commit 104c307147ad379617472dd91a5bcb368d72bd6d ]

In dcn*_create_resource_pool the allocated memory should be released if
construct pool fails.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c