summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-06-10 17:41:57 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-06-11 01:19:39 +0000
commit6195c834eda00efc8758e18685109f2ee2b2a3f1 (patch)
treec775009205ec322fad337eb0c7065fee16cc7fa1 /src/plugins
parentf1ddeeb15555e783a9cb0133d4f8eb9c40852ab5 (diff)
memif: fix crash with zero-copy slave
Type: fix Change-Id: I456cc0b0a6f2dc32b14791baf9d4a7f67279e8df Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/memif/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c
index 102d93da674..c7ad9740b02 100644
--- a/src/plugins/memif/node.c
+++ b/src/plugins/memif/node.c
@@ -809,7 +809,7 @@ refill:
d[6].offset = (u64) vlib_get_buffer (vm, bi[6])->data - offset;
d[7].offset = (u64) vlib_get_buffer (vm, bi[7])->data - offset;
- slot += 8;
+ slot = (slot + 8) & mask;
n_alloc -= 8;
continue;