diff options
author | Damjan Marion <damarion@cisco.com> | 2021-06-10 17:41:57 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-06-11 01:19:39 +0000 |
commit | 6195c834eda00efc8758e18685109f2ee2b2a3f1 (patch) | |
tree | c775009205ec322fad337eb0c7065fee16cc7fa1 | |
parent | f1ddeeb15555e783a9cb0133d4f8eb9c40852ab5 (diff) |
memif: fix crash with zero-copy slave
Type: fix
Change-Id: I456cc0b0a6f2dc32b14791baf9d4a7f67279e8df
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | src/plugins/memif/node.c | 2 |
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; |