Re: [PATCH] drm/amdgpu: add list empty check to avoid null pointer issue

2024-08-22 Thread Michel Dänzer
On 2024-08-21 08:57, Yang Wang wrote: > Add list empty check to avoid null pointer issues in some corner cases. > - list_for_each_entry_safe() What corner cases? If the list is empty, list_for_each_entry_safe() should be mostly a no-op. -- Earthling Michel Dänzer \GNOME / Xwaylan

RE: [PATCH] drm/amdgpu: add list empty check to avoid null pointer issue

2024-08-21 Thread Zhou1, Tao
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 > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 10 ++ > 1 file chang

[PATCH] drm/amdgpu: add list empty check to avoid null pointer issue

2024-08-20 Thread Yang Wang
Add list empty check to avoid null pointer issues in some corner cases. - list_for_each_entry_safe() Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c b/drivers/gpu/drm/amd