aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/umem.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-01-24 19:58:34 -0700
committerDoug Ledford <dledford@redhat.com>2018-01-25 10:57:29 -0500
commit3624a8f02568f08aef299d3b117f2226f621177d (patch)
tree3fdc55f1fe0ba5acf31927b714d1319024ca4229 /drivers/infiniband/core/umem.c
parentMAINTAINERS: Fix the location of the rdma git repo (diff)
downloadlinux-dev-3624a8f02568f08aef299d3b117f2226f621177d.tar.xz
linux-dev-3624a8f02568f08aef299d3b117f2226f621177d.zip
RDMA/uverbs: Use an unambiguous errno for method not supported
Returning EOPNOTSUPP is problematic because it can also be returned by the method function, and we use it in quite a few places in drivers these days. Instead, dedicate EPROTONOSUPPORT to indicate that the ioctl framework is enabled but the requested object and method are not supported by the kernel. No other case will return this code, and it lets userspace know to fall back to write(). grep says we do not use it today in drivers/infiniband subsystem. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/umem.c')
0 files changed, 0 insertions, 0 deletions