virtio: fix overflow in case of buffering + drop
Type: fix
Fixes: 2e6f624f1f
Change-Id: Ib41c82ea1e8430afc920250fb0d054a2fb2d08c9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
b5df85e243
commit
e7af6f7ca4
@ -1042,7 +1042,6 @@ retry:
|
|||||||
[frame->n_vectors
|
[frame->n_vectors
|
||||||
- n_left],
|
- n_left],
|
||||||
n_left);
|
n_left);
|
||||||
buffers += n_buffered;
|
|
||||||
n_left -= n_buffered;
|
n_left -= n_buffered;
|
||||||
}
|
}
|
||||||
if (n_left)
|
if (n_left)
|
||||||
|
Reference in New Issue
Block a user