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