aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs_uapi.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-11-25 20:51:14 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-11-26 16:48:07 -0700
commit7106a9769715bb4c0448927a29aa3b505855871c (patch)
tree48bfaac92a7adfedbf50c224bf054f519008c3b4 /drivers/infiniband/core/uverbs_uapi.c
parentRDMA/uverbs: Replace ib_uverbs_file with uverbs_attr_bundle for write (diff)
downloadlinux-dev-7106a9769715bb4c0448927a29aa3b505855871c.tar.xz
linux-dev-7106a9769715bb4c0448927a29aa3b505855871c.zip
RDMA/uverbs: Make write() handlers return 0 on success
Currently they return the command length, while all other handlers return 0. This makes the write path closer to the write_ex and ioctl path. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_uapi.c')
-rw-r--r--drivers/infiniband/core/uverbs_uapi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/core/uverbs_uapi.c b/drivers/infiniband/core/uverbs_uapi.c
index ad72d726efa9..4738c266ff50 100644
--- a/drivers/infiniband/core/uverbs_uapi.c
+++ b/drivers/infiniband/core/uverbs_uapi.c
@@ -8,9 +8,8 @@
#include "rdma_core.h"
#include "uverbs.h"
-static ssize_t ib_uverbs_notsupp(struct uverbs_attr_bundle *attrs,
- const char __user *buf, int in_len,
- int out_len)
+static int ib_uverbs_notsupp(struct uverbs_attr_bundle *attrs,
+ const char __user *buf, int in_len, int out_len)
{
return -EOPNOTSUPP;
}