summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorRuoyu Wang <ruoyuw560@gmail.com>2026-06-08 14:36:38 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-06-17 16:23:16 -0400
commitd3f30034f861a585f8e487ae1555d9f288a96f87 (patch)
treeed6e98bd32cad3969455629948223c07e75b65a6 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parent87be26aee76239c6da03e599f238a426897f78ad (diff)
downloadlinux-next-d3f30034f861a585f8e487ae1555d9f288a96f87.tar.gz
linux-next-d3f30034f861a585f8e487ae1555d9f288a96f87.zip
drm/radeon: avoid double free in r600 DPM cleanup
r600_parse_extended_power_table() uses manual kfree() calls for some early allocation failures, but the freed pointers are left in the dynamic power-management state. If device teardown later calls r600_free_extended_power_table(), those stale pointers can be freed again. Use the common extended power table cleanup helper for those early failure paths as well, and clear each pointer after freeing it so repeated cleanup stays safe. Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions