diff options
| author | Dan Carpenter <[email protected]> | 2011-11-04 18:24:36 +0000 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <[email protected]> | 2011-11-16 17:13:48 +0000 |
| commit | 99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e (patch) | |
| tree | 2c2f3a0271dc0e2b627eb45823c03a10bbce3002 /lib/debugobjects.c | |
| parent | xen-gntalloc: integer overflow in gntalloc_ioctl_alloc() (diff) | |
| download | kernel-99cb2ddcc617f43917e94a4147aa3ccdb2bcd77e.tar.gz kernel-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: [email protected]
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
