diff options
author | Jason Gunthorpe <[email protected]> | 2020-11-30 09:58:35 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-12-07 14:06:22 -0400 |
commit | b9653b31d7767b7dccc8b24b660301be90449036 (patch) | |
tree | 678c813c850aab69d2ce8c399879b0d11588fcbf /net/lapb/lapb_subr.c | |
parent | 87524494a7d939e6e120e893e2bdcc35599dfda1 (diff) |
RDMA/uverbs: Tidy input validation of ib_uverbs_rereg_mr()
Unknown flags should be EOPNOTSUPP, only zero flags is EINVAL. Flags is
actually the rereg action to perform.
The checking of the start/hca_va/etc is also redundant and ib_umem_get()
does these checks and returns proper error codes.
Fixes: 7e6edb9b2e0b ("IB/core: Add user MR re-registration support")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions