diff options
| author | Thomas Gleixner <[email protected]> | 2010-10-12 14:41:22 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2010-10-12 14:41:26 +0000 |
| commit | 7c5f13519a67aa7ba3a99155f128d4bdef87d087 (patch) | |
| tree | e4d0537092930a53a85932de83a7861990c58607 /drivers/vhost/net.c | |
| parent | Merge branch 'x86/cleanups' into irq/sparseirq (diff) | |
| parent | x86, hpet: Fix bogus error check in hpet_assign_irq() (diff) | |
| download | kernel-7c5f13519a67aa7ba3a99155f128d4bdef87d087.tar.gz kernel-7c5f13519a67aa7ba3a99155f128d4bdef87d087.zip | |
Merge branch 'x86/urgent' of into irq/sparseirq
Reason: Pull in the latest io_apic bugfixes
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'drivers/vhost/net.c')
| -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; } |
