Commit 3779298b authored by David S. Miller's avatar David S. Miller
parents 8444cf71 ee05d693
...@@ -243,7 +243,7 @@ static int get_rx_bufs(struct vhost_virtqueue *vq, ...@@ -243,7 +243,7 @@ static int get_rx_bufs(struct vhost_virtqueue *vq,
int r, nlogs = 0; int r, nlogs = 0;
while (datalen > 0) { while (datalen > 0) {
if (unlikely(headcount >= VHOST_NET_MAX_SG)) { if (unlikely(seg >= VHOST_NET_MAX_SG)) {
r = -ENOBUFS; r = -ENOBUFS;
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment