[FreeBSD] Fix linux list compat list_for_each_safe()

linux_for_each_safe would not handle lists with a single entry.
This commit is contained in:
Robert Noland 2008-10-09 22:13:26 -04:00
parent a8f73c214d
commit 1150a42d43

View file

@ -66,6 +66,6 @@ list_del(struct list_head *entry) {
#define list_for_each_safe(entry, temp, head) \
for (entry = (head)->next, temp = (entry)->next; \
temp != head; \
entry = temp, temp = temp->next)
entry != head; \
entry = temp, temp = entry->next)