RDMA/uverbs: Return not supported error code for unsupported commands
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 21 Feb 2018 16:12:35 +0000 (18:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 23 Feb 2018 03:29:11 +0000 (22:29 -0500)
commita9ed5b38aad704bbc250f9df2e9a29ee54388829
treecad767da50270939cb9403a05b0843715df7ea92
parent43ae95130db8fb70010f09b734c7c606eb9e61ce
RDMA/uverbs: Return not supported error code for unsupported commands

Command that doesn't exist means that it is not supported,
so update code to return -EOPNOTSUPP in case of failure.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_main.c