From f01b1b40ac9080d17f5db2514861c407bdfc0869 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 3 Jun 2012 16:38:00 +0200 Subject: [PATCH] vchan: fix xc_gnttab_open call --- vchan/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vchan/init.c b/vchan/init.c index e93d5148..de2991a6 100644 --- a/vchan/init.c +++ b/vchan/init.c @@ -278,10 +278,11 @@ static int client_interface_init(struct libvchan *ctrl, int domain, int devno) struct xs_handle *xs; #ifdef XENCTRL_HAS_XC_INTERFACE xc_interface *xcfd; + xc_gnttab *xcg; #else int xcfd; -#endif int xcg; +#endif char buf[64]; char *ref; int version; @@ -346,7 +347,7 @@ static int client_interface_init(struct libvchan *ctrl, int domain, int devno) xc_interface_close(xcfd); break; case 2: - xcg = xc_gnttab_open(); + xcg = xc_gnttab_open(NULL, 0); if (xcg < 0) goto fail; ctrl->ring = (struct vchan_interface *)