From: Monk Liu Date: Fri, 27 May 2016 09:52:58 +0000 (+0800) Subject: drm/amdgpu: fix mem leak in smumgr X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3a3e88804d44e41ef2182d2a6577a6803fdd9ee0;p=linux-beck.git drm/amdgpu: fix mem leak in smumgr Signed-off-by: Monk Liu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c index c483baf6b4fb..0728c1e3d97a 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c @@ -81,6 +81,7 @@ int smum_init(struct amd_pp_init *pp_init, struct pp_instance *handle) int smum_fini(struct pp_smumgr *smumgr) { + kfree(smumgr->device); kfree(smumgr); return 0; }