summaryrefslogtreecommitdiff
path: root/arch/powerpc/configs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-11-04 21:24:36 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-21 14:35:26 -0800
commit8bb72ab63d58957270b2dc31e6c9bcfa38470d2c (patch)
tree5249287b10b8808be43c60ae6d9b135e603e4879 /arch/powerpc/configs
parent1b4f3a211878328065ee7ae79a380241bedaef5a (diff)
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>
Diffstat (limited to 'arch/powerpc/configs')
0 files changed, 0 insertions, 0 deletions