]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: prevent memory leak
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Wed, 25 Sep 2019 04:23:56 +0000 (23:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Sep 2019 19:58:38 +0000 (14:58 -0500)
commit96724276995d06d5575c292323690962d78862a1
tree0118ac33bb90ed225085a6c5b4d3f79732e9dcd8
parentccdcf2ca1c13e0eb05408f1403d8df794cfb013a
drm/amd/display: prevent memory leak

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>
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