summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2020-07-01 15:16:38 +0300
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2020-07-03 00:19:38 +0300
commit578c1bb9056263ad3c9e09746b3d6e4daf63bdb0 (patch)
tree23592b3b4e131ade1b8a3ca79a7ef346d530c46c /arch
parent3848e4e0a32afb96dc3b84e1358c3b9d103c6a2c (diff)
downloadlinux-578c1bb9056263ad3c9e09746b3d6e4daf63bdb0.tar.xz
xen/xenbus: let xenbus_map_ring_valloc() return errno values only
Today xenbus_map_ring_valloc() can return either a negative errno value (-ENOMEM or -EINVAL) or a grant status value. This is a mess as e.g -ENOMEM and GNTST_eagain have the same numeric value. Fix that by turning all grant mapping errors into -ENOENT. This is no problem as all callers of xenbus_map_ring_valloc() only use the return value to print an error message, and in case of mapping errors the grant status value has already been printed by __xenbus_map_ring() before. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Link: https://lore.kernel.org/r/20200701121638.19840-3-jgross@suse.com Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions