[PATCH] drm/amd/powerplay: fix memory leak on tdp_table

2016-03-21 Thread Colin King
From: Colin Ian King tdp_table is being leaked on an error exit return path, fix this by kfree'ing it. Also swap comparison around to make the patch warning free with checkpatch. Leak found via static analysis with CoverityScan Signed-off-by: Colin Ian King ---

[PATCH] drm/amd/powerplay: fix memory leak of tdp_table

2016-03-18 Thread Colin King
From: Colin Ian King 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 --- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c | 4 +++- 1

[PATCH] drm/amd/powerplay: fix memory leak of tdp_table

2016-03-18 Thread Alex Deucher
On Fri, Mar 18, 2016 at 12:47 PM, Colin King wrote: > From: Colin Ian King > > 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 Applied, thanks! Alex > --- >