summaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-11-06 16:24:29 -0800
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-11-18 13:29:09 +0000
commite97a054fd38ce1dc252870a78a27ed44fdd42d5a (patch)
tree3a5bbf47e5eb8e7693c476e50ac611fb6bc25a44 /src/svm
parent93feaa2fffd04c8abe34c01513e1a84c95232253 (diff)
svm: fix byte accounting when allocating fifo header
Type: fix Change-Id: Ie50625271d257da814445ce13c2e6cd98986d523 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit c9dff181c8d135b95a12297c44bb4aa87b95b21d)
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/fifo_segment.c1
1 files changed, 1 insertions, 0 deletions
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
{