summaryrefslogtreecommitdiffstats
path: root/drivers/pps/kc.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2014-09-02 16:21:29 +0200
committerDavid Vrabel <david.vrabel@citrix.com>2014-09-04 14:13:13 +0200
commite9de2e5fd602c4f5ddf212d3837b19ad4f5878ad (patch)
tree5de52049ae43fe91f89196a76c23c24fc32e554e /drivers/pps/kc.c
parentxen/balloon: cancel ballooning if adding new memory failed (diff)
downloadlinux-e9de2e5fd602c4f5ddf212d3837b19ad4f5878ad.tar.xz
linux-e9de2e5fd602c4f5ddf212d3837b19ad4f5878ad.zip
xen/gntalloc: fix oops after runnning out of grant refs
Only set gref->gref_id if foreign access was successfully granted and the grant ref is valid. If gref->gref_id == -ENOSPC the test in __del_gref() would incorrectly attempt to end foreign access (because grant_ref_t is unsigned). Signed-off-by: David Vrabel <david.vrabel@citrix.com> Reported-by: Dave Scott <dave.scott@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/pps/kc.c')
0 files changed, 0 insertions, 0 deletions