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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 / Xwayland / Mesa developer
https://redhat.com             \               Libre software enthusiast



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux