Files
linux/drivers
Dan Carpenter 8bb72ab63d xen-gntalloc: signedness bug in add_grefs()
commit 99cb2ddcc6 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:35:26 -08:00
..
2011-07-26 16:49:47 -07:00
2011-07-28 01:30:07 -07:00
2011-10-13 13:49:37 -06:00
2011-07-22 14:39:51 +09:30
2011-07-26 16:49:47 -07:00
2011-07-25 21:00:19 -07:00
2011-07-26 16:49:47 -07:00
2011-11-11 09:43:38 -08:00
2011-07-26 16:49:47 -07:00
2011-11-11 09:43:26 -08:00
2011-11-21 14:35:17 -08:00