summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-11-04 19:24:36 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-11-16 18:13:48 +0100
commit99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e (patch)
tree2c2f3a0271dc0e2b627eb45823c03a10bbce3002 /mm
parentxen-gntalloc: integer overflow in gntalloc_ioctl_alloc() (diff)
downloadlinux-99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e.tar.xz
linux-99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e.zip
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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions