Subject: lguest: Correctly set vringfd limit
Date: Fri, 13 Jun 2008 14:27:36 +0100
From: Mark McLoughlin <markmc@redhat.com>

(Fixes lguest:use-tun-ringfd.patch)

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 Documentation/lguest/lguest.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/lguest/lguest.c b/Documentation/lguest/lguest.c
index fb358bb..b1997b4 100644
--- a/Documentation/lguest/lguest.c
+++ b/Documentation/lguest/lguest.c
@@ -1387,7 +1387,7 @@ static int map_vring(struct vring *vr)
 
 	/* Set offset & limit. */
 	if (ioctl(fd, VRINGSETBASE, guest_base) != 0
-	    || ioctl(fd, VRINGSETBASE, guest_base) != 0)
+	    || ioctl(fd, VRINGSETLIMIT, guest_limit) != 0)
 		err(1, "Setting vring offset and limit");
 
 	return fd;
