From c75e470ed454b8d593ef4f1749eb90eb39742897 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 1 Mar 2014 15:56:22 -0500 Subject: [PATCH] ck_fifo_spsc: De-initialize from head. --- include/ck_fifo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_fifo.h b/include/ck_fifo.h index 5d18738..a65bcfc 100644 --- a/include/ck_fifo.h +++ b/include/ck_fifo.h @@ -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->garbage; + *garbage = fifo->head; fifo->head = fifo->tail = NULL; return; }