mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
🐛 修复了list_empty的bug
This commit is contained in:
parent
9828aff985
commit
b75504c0e5
@ -132,7 +132,7 @@ static inline bool list_empty(struct List *entry)
|
||||
* @param entry 入口
|
||||
*/
|
||||
|
||||
if (entry->prev == entry->next)
|
||||
if(entry == entry->next && entry->prev == entry)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user