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
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by: Tao Zhou
> -Original Message-
> From: Wang, Yang(Kevin)
> Sent: Wednesday, August 21, 2024 2:57 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Zhang, Hawking ; Zhou1, Tao
>
> Subject: [PATCH] drm/amdgpu: add list empty