diff options
author | Florin Coras <fcoras@cisco.com> | 2019-08-28 17:12:32 -0700 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-09-27 09:36:42 +0000 |
commit | 154e4a6cb75df40093540e60ecea8352ca00e479 (patch) | |
tree | 21a37c1ab02e70ebb14673cf5ba767746e06d48c /src/svm/fifo_segment.c | |
parent | 997f95e11a23c7d90a1d29464841a7ad6a413a6c (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/fifo_segment.c')
-rw-r--r-- | src/svm/fifo_segment.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/svm/fifo_segment.c b/src/svm/fifo_segment.c index eeb274636c1..dab97a55209 100644 --- a/src/svm/fifo_segment.c +++ b/src/svm/fifo_segment.c @@ -233,6 +233,10 @@ fs_try_alloc_fifo_freelist_multi_chunk (fifo_segment_t * fs, u32 data_bytes) return 0; memset (f, 0, sizeof (*f)); } + else + { + fsh->free_fifos = f->next; + } fl_index = fs_freelist_for_size (data_bytes) - 1; vec_validate_init_empty (fsh->free_chunks, fl_index, 0); |