ck_fifo: return fifo->garbage at spsc deinit (#146)

This code was returning the head of the fifo as garbage during a
de-init. It should instead return the fifo->garbage value.
awsm
Philip Maddox 5 years ago committed by Samy Al Bahra
parent 4d63d3158c
commit f37aa8bed6

@ -115,7 +115,7 @@ CK_CC_INLINE static void
ck_fifo_spsc_deinit(struct ck_fifo_spsc *fifo, struct ck_fifo_spsc_entry **garbage)
{
*garbage = fifo->head;
*garbage = fifo->garbage;
fifo->head = fifo->tail = NULL;
return;
}

Loading…
Cancel
Save