diff options
| author | Jason Gunthorpe <jgg@mellanox.com> | 2018-11-25 20:51:14 +0200 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-11-26 16:48:07 -0700 |
| commit | 7106a9769715bb4c0448927a29aa3b505855871c (patch) | |
| tree | 48bfaac92a7adfedbf50c224bf054f519008c3b4 /drivers/infiniband/core/rdma_core.h | |
| parent | 8313c10fa8be032fccc1e757bccc21207f533127 (diff) | |
| download | linux-7106a9769715bb4c0448927a29aa3b505855871c.tar.gz linux-7106a9769715bb4c0448927a29aa3b505855871c.tar.bz2 linux-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/rdma_core.h')
| -rw-r--r-- | drivers/infiniband/core/rdma_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/rdma_core.h b/drivers/infiniband/core/rdma_core.h index edd299174d95..59edd7514095 100644 --- a/drivers/infiniband/core/rdma_core.h +++ b/drivers/infiniband/core/rdma_core.h @@ -137,8 +137,8 @@ struct uverbs_api_ioctl_method { }; struct uverbs_api_write_method { - ssize_t (*handler)(struct uverbs_attr_bundle *attrs, - const char __user *buf, int in_len, int out_len); + int (*handler)(struct uverbs_attr_bundle *attrs, const char __user *buf, + int in_len, int out_len); int (*handler_ex)(struct uverbs_attr_bundle *attrs, struct ib_udata *ucore, struct ib_udata *uhw); u8 disabled:1; |
