Re: [PATCH] drm/radeon/trinity_dpm: fix a memleak in trinity_parse_power_table

2023-12-04 Thread Amos Jianjun Kong
On Mon, Dec 4, 2023 at 5:55 PM Zhipeng Lu wrote: > > The rdev->pm.dpm.ps allocated by kcalloc should be freed in every > following error-handling path. However, in the error-handling of > rdev->pm.power_state[i].clock_info the rdev->pm.dpm.ps is not freed, > resulting in a memleak in this function

Re: [PATCH] drm/amdkfd: fix resource_size.cocci warnings

2021-09-26 Thread Amos Jianjun Kong
On Sun, Sep 26, 2021 at 3:17 PM Yang Li wrote: > Use resource_size function on resource object > instead of explicit computation. > > Clean up coccicheck warning: > ./drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:905:10-13: ERROR: Missing > resource_size with res > > Reported-by: Abaci Robot > Signed