diff options
author | David S. Miller <davem@davemloft.net> | 2010-09-20 20:13:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-20 20:13:34 +0200 |
commit | 3779298b81cd9a2531cec93e3beefc1acdb01382 (patch) | |
tree | 7182f6b13a789c6353e59d26fdc0781f843ca9a8 /drivers | |
parent | xfrm: Allow different selector family in temporary state (diff) | |
parent | vhost-net: fix range checking in mrg bufs case (diff) | |
download | linux-3779298b81cd9a2531cec93e3beefc1acdb01382.tar.xz linux-3779298b81cd9a2531cec93e3beefc1acdb01382.zip |
Merge branch 'vhost-net' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/vhost/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 29e850a7a2f9..7c8008225ee3 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -243,7 +243,7 @@ static int get_rx_bufs(struct vhost_virtqueue *vq, int r, nlogs = 0; while (datalen > 0) { - if (unlikely(headcount >= VHOST_NET_MAX_SG)) { + if (unlikely(seg >= VHOST_NET_MAX_SG)) { r = -ENOBUFS; goto err; } |