RDMA/uverbs: Remove out_len checks that are now done by the core
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:58:34 +0000 (20:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Dec 2018 16:57:41 +0000 (11:57 -0500)
commitbbb28ad9035f8efa9c5581b3809ff8055cc1f4b2
tree025f06849aee4e59e9e65a3aa3cf538675d13df8
parent34f4c9554d8b2a7d2deb9503e9373b598ee3279f
RDMA/uverbs: Remove out_len checks that are now done by the core

write() methods must work with fixed sized structures as that is the only
way to know where the udata segment starts. The common udata code now
rejects any write() that has a response buffer shorter than the core's
response.

Thus all the checks of out_len for write methods are redundant and can be
removed.

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