linux-hardened/drivers/xen
Dan Carpenter 99cb2ddcc6 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 <dan.carpenter@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2011-11-16 12:13:48 -05:00
..
xen-pciback
xenbus
xenfs
balloon.c
biomerge.c
cpu_hotplug.c
events.c
evtchn.c
features.c
gntalloc.c xen-gntalloc: signedness bug in add_grefs() 2011-11-16 12:13:48 -05:00
gntdev.c
grant-table.c
Kconfig
Makefile
manage.c
pci.c
platform-pci.c
swiotlb-xen.c
sys-hypervisor.c
tmem.c
xen-balloon.c
xen-selfballoon.c
xencomm.c