summaryrefslogtreecommitdiffstats
path: root/src/svm/svm_fifo.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-28 17:12:32 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-27 09:36:42 +0000
commit154e4a6cb75df40093540e60ecea8352ca00e479 (patch)
tree21a37c1ab02e70ebb14673cf5ba767746e06d48c /src/svm/svm_fifo.c
parent997f95e11a23c7d90a1d29464841a7ad6a413a6c (diff)
svm: fix fifo hdr freelist allocation
Type: fix Change-Id: Ia362ad821db1fd506e973e1844cc3ec74703cc17 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit 73cad33b56ffc08943e9c0d73ecb14466558baae)
Diffstat (limited to 'src/svm/svm_fifo.c')
-rw-r--r--src/svm/svm_fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/svm_fifo.c b/src/svm/svm_fifo.c
index b6f0df7d88d..6bd6f9157bc 100644
--- a/src/svm/svm_fifo.c
+++ b/src/svm/svm_fifo.c
@@ -400,7 +400,7 @@ svm_fifo_init (svm_fifo_t * f, u32 size)
f->ooos_list_head = OOO_SEGMENT_INVALID_INDEX;
f->segment_index = SVM_FIFO_INVALID_INDEX;
f->refcnt = 1;
- f->flags = 0;
+ f->head = f->tail = f->flags = 0;
f->head_chunk = f->tail_chunk = f->ooo_enq = f->ooo_deq = f->start_chunk;
}