]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: add list empty check to avoid null pointer issue
authorYang Wang <kevinyang.wang@amd.com>
Wed, 21 Aug 2024 06:42:41 +0000 (14:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2024 14:53:45 +0000 (10:53 -0400)
commit4416377ae1fdc41a90b665943152ccd7ff61d3c5
treebfd82a6d532df67b1c6e31c9799e9a65b3f1858a
parent2845f512232de9e436b9e3b5529e906e62414013
drm/amdgpu: add list empty check to avoid null pointer issue

Add list empty check to avoid null pointer issues in some corner cases.
- list_for_each_entry_safe()

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c