From: Dan Carpenter Date: Fri, 4 Nov 2011 18:24:36 +0000 (+0300) Subject: xen-gntalloc: signedness bug in add_grefs() X-Git-Tag: v3.2-rc3~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e;p=pandora-kernel.git xen-gntalloc: signedness bug in add_grefs() gref->gref_id is unsigned so the error handling didn't work. gnttab_grant_foreign_access() returns an int type, so we can add a cast here, and it doesn't cause any problems. gnttab_grant_foreign_access() can return a variety of errors including -ENOSPC, -ENOSYS and -ENOMEM. CC: stable@kernel.org Signed-off-by: Dan Carpenter Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed