]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix memory leak in cz_hwmgr backend
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 6 Jun 2017 08:25:44 +0000 (16:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jun 2017 21:01:13 +0000 (17:01 -0400)
commit58055ef1a4c25a38dd5eb4c744fb99afa6aed4b6
tree67bd5d1c62445f22bda13feb9ff7e9a19c204faa
parentb23b87164417a2b93da01df1dde634de5da0ba09
drm/amd/powerplay: fix memory leak in cz_hwmgr backend

vddc_dep_on_dal_pwrl is allocated and initialized in cz_hwmgr_backend_init
Thus free the memory in cz_hwmgr_backend_fini

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c