summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-11-20 19:18:41 +0100
committerDamjan Marion <dmarion@me.com>2020-11-23 15:59:07 +0000
commite7af6f7ca4c03dee743c08f7be6e48289ca25ebf (patch)
tree59c79e436d1ee483b29aeeffab48ba17c2e5a65f
parentb5df85e2436b3a71d1771f1c66485d80d57e4c44 (diff)
virtio: fix overflow in case of buffering + drop
Type: fix Fixes: 2e6f624f1f82ae0351dd05ad5d930d6876105519 Change-Id: Ib41c82ea1e8430afc920250fb0d054a2fb2d08c9 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/vnet/devices/virtio/device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vnet/devices/virtio/device.c b/src/vnet/devices/virtio/device.c
index 7e57952905b..6b57dd62e98 100644
--- a/src/vnet/devices/virtio/device.c
+++ b/src/vnet/devices/virtio/device.c
@@ -1042,7 +1042,6 @@ retry:
[frame->n_vectors
- n_left],
n_left);
- buffers += n_buffered;
n_left -= n_buffered;
}
if (n_left)