]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/amd/powerplay: fix memory leak of tdp_table
authorColin Ian King <colin.king@canonical.com>
Fri, 18 Mar 2016 16:47:29 +0000 (16:47 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Mar 2016 15:52:13 +0000 (11:52 -0400)
commita82d397bffc2ff3a72e9b8ca3850771ff5cf451f
treecc8fcb1a62f77a65c6482b5a042ee4678c93c16e
parent568d7c764ae01f3706085ac8f0d8a8ac7e826bd7
drm/amd/powerplay: fix memory leak of tdp_table

tdp_table is being leaked on failed allocations of
hwmgr->dyn_state.cac_dtp_table. kfree tdp_table on the error
return path to fix the leak.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c