Files
kernel-tenderloin-3.0/drivers
Dan Carpenter 015be9f48b xen-gntalloc: signedness bug in add_grefs()
commit 99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e upstream.

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.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-21 14:31:24 -08:00
..
2011-10-16 14:14:51 -07:00
2011-10-03 11:40:08 -07:00
2011-11-11 09:36:24 -08:00
2011-11-11 09:36:13 -08:00
2011-11-21 14:31:14 -08:00