[PATCH 0/6] Fix several bugs in error handling during device
Jiang Liu
gerry at linux.alibaba.com
Thu Jan 2 05:36:51 UTC 2025
This patchset tries to fix several memory leakages/invalid memory
accesses on error handling path during GPU driver loading/unloading.
They applies to:
https://github.com/ROCm/ROCK-Kernel-Driver/tree/master/drivers
Jiang Liu (6):
amdgpu: add flags to track sysfs initialization status
amdgpu: fix invalid memory access in kfd_cleanup_nodes()
amdgpu: clear adev->in_suspend flag when fails to suspend
amdgpu: fix use after free bug related to amdgpu_driver_release_kms()
amdgpu: fix invalid memory access in amdgpu_fence_driver_sw_fini()
amdgpu: get rid of false warnings caused by amdgpu_irq_put()
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 47 +++++++++++++++++-----
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 9 ++++-
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | 1 +
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 7 +++-
drivers/gpu/drm/scheduler/sched_main.c | 3 ++
8 files changed, 60 insertions(+), 15 deletions(-)
--
2.43.5
More information about the amd-gfx
mailing list