search for: f095de6

Displaying 2 results from an estimated 2 matches for "f095de6".

2010 Sep 14
1
[PATCH] vhost-net: fix range checking in mrg bufs case
...sowang at redhat.com> Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- Dave, I'll queue this on my tree, no need to bother. 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 6400cd5..f095de6 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -245,7 +245,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;...
2010 Sep 14
1
[PATCH] vhost-net: fix range checking in mrg bufs case
...sowang at redhat.com> Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- Dave, I'll queue this on my tree, no need to bother. 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 6400cd5..f095de6 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -245,7 +245,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;...