From 3ed5e3f260b7fcd833fa06375a3230e4b4133a18 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 4 Nov 2011 21:24:36 +0300 Subject: [PATCH] --- yaml --- r: 275581 b: refs/heads/master c: 99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e h: refs/heads/master i: 275579: c8cb78cbe8665bb444f3b716a7501827a03eab61 v: v3 --- [refs] | 2 +- trunk/drivers/xen/gntalloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 80e8175b44a4..0654c32631af 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 21643e69a4c06f7ef155fbc70e3fba13fba4a756 +refs/heads/master: 99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e diff --git a/trunk/drivers/xen/gntalloc.c b/trunk/drivers/xen/gntalloc.c index 23c60cf4313e..e1c4c6e5b469 100644 --- a/trunk/drivers/xen/gntalloc.c +++ b/trunk/drivers/xen/gntalloc.c @@ -135,7 +135,7 @@ static int add_grefs(struct ioctl_gntalloc_alloc_gref *op, /* Grant foreign access to the page. */ gref->gref_id = gnttab_grant_foreign_access(op->domid, pfn_to_mfn(page_to_pfn(gref->page)), readonly); - if (gref->gref_id < 0) { + if ((int)gref->gref_id < 0) { rc = gref->gref_id; goto undo; }