MT#55283 fix iqueue pop linkage

Change-Id: If5b2969548bb3b58abe8c48d8d0f265e558ab416
(cherry picked from commit 8af55fd116)
(cherry picked from commit 9e038348f6)
mr26.3.1
Richard Fuchs 2 weeks ago
parent 005acae4df
commit edfbc3c100

@ -57,6 +57,10 @@
(list)->length--; \
if (!(list)->head) \
(list)->tail = NULL; \
else { \
__auto_type __head = (__typeof((list)->offset)) (list)->head; \
__head->link.prev = NULL; \
} \
} \
__ret; \
})
@ -71,6 +75,10 @@
(list)->length--; \
if (!(list)->tail) \
(list)->head = NULL; \
else { \
__auto_type __tail = (__typeof((list)->offset)) (list)->tail; \
__tail->link.next = NULL; \
} \
} \
__ret; \
})
@ -118,6 +126,7 @@
} \
else \
(list)->head = __link->link.next; \
__link->link.next = __link->link.prev = NULL; \
(list)->length--; \
} while (0)

Loading…
Cancel
Save