Re: Re: [PATCH] drm/radeon/dpm: fix a memleak in sumo_parse_power_table

2023-12-04 Thread alexious
> Am 03.12.23 um 18:16 schrieb Zhipeng Lu: > > 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/radeon/dpm: fix a memleak in sumo_parse_power_table

2023-12-04 Thread Christian König
Am 03.12.23 um 18:16 schrieb Zhipeng Lu: 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. Fixes: 80ea2c1