Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/pm: fix memleak issue in smu_v15_0_8_get_gpu_metrics()

remove unsued code to avoid memleak issue.
(NOTE: This bug occurs during internal branch switching)

Fixes: 0a66ca3b351f ("drm/amd/pm: add get_gpu_metrics support for 15.0.8")
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yang Wang and committed by
Alex Deucher
48d1a5b3 e4465c04

-2
-2
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c
··· 1611 1611 uint32_t mid_mask = adev->aid_mask; 1612 1612 MetricsTable_t *metrics; 1613 1613 1614 - metrics = kzalloc(sizeof(MetricsTable_t), GFP_KERNEL); 1615 - 1616 1614 ret = smu_v15_0_8_get_metrics_table_internal(smu, 1, NULL); 1617 1615 if (ret) 1618 1616 return ret;