aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorDavid Vrabel <[email protected]>2014-09-02 14:21:29 +0000
committerDavid Vrabel <[email protected]>2014-09-04 12:13:13 +0000
commite9de2e5fd602c4f5ddf212d3837b19ad4f5878ad (patch)
tree5de52049ae43fe91f89196a76c23c24fc32e554e /lib/assoc_array.c
parentxen/balloon: cancel ballooning if adding new memory failed (diff)
downloadkernel-e9de2e5fd602c4f5ddf212d3837b19ad4f5878ad.tar.gz
kernel-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 <[email protected]> Reported-by: Dave Scott <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions