From: Florin Coras Date: Thu, 7 Nov 2019 00:24:29 +0000 (-0800) Subject: svm: fix byte accounting when allocating fifo header X-Git-Tag: v20.05-rc0~434 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=c9dff181c8d135b95a12297c44bb4aa87b95b21d;p=vpp.git svm: fix byte accounting when allocating fifo header Type: fix Change-Id: Ie50625271d257da814445ce13c2e6cd98986d523 Signed-off-by: Florin Coras --- diff --git a/src/svm/fifo_segment.c b/src/svm/fifo_segment.c index dab97a55209..65763059e3a 100644 --- a/src/svm/fifo_segment.c +++ b/src/svm/fifo_segment.c @@ -232,6 +232,7 @@ fs_try_alloc_fifo_freelist_multi_chunk (fifo_segment_t * fs, u32 data_bytes) if (!f) return 0; memset (f, 0, sizeof (*f)); + fsh->n_free_bytes -= sizeof (*f); } else {