projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43ae951
)
RDMA/uverbs: Return not supported error code for unsupported commands
author
Leon Romanovsky
<leonro@mellanox.com>
Wed, 21 Feb 2018 16:12:35 +0000
(18:12 +0200)
committer
Doug Ledford
<dledford@redhat.com>
Fri, 23 Feb 2018 03:29:11 +0000
(22:29 -0500)
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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/uverbs_main.c
b/drivers/infiniband/core/uverbs_main.c
index 2189a26bbe6401d3e6e4fe8f9053a39c0d4ecef5..8d1547f5dc8e9fef55fc94d31d029238cc7d68dc 100644
(file)
--- a/
drivers/infiniband/core/uverbs_main.c
+++ b/
drivers/infiniband/core/uverbs_main.c
@@
-714,7
+714,7
@@
static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,
}
if (!verify_command_idx(command, extended_command)) {
- ret = -E
INVAL
;
+ ret = -E
OPNOTSUPP
;
goto out;
}