]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/uverbs: Do not check the input length on create_cq/qp paths
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:58:44 +0000 (20:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Dec 2018 17:01:58 +0000 (12:01 -0500)
commitece9ca97ccdc845c0c48e204e5a6d9149b7a24b3
treec2ba1f9af8f9bb6ff186cf21be63a4f17f676a14
parentc3bea3d2dc5358e05541527283279102383b0231
RDMA/uverbs: Do not check the input length on create_cq/qp paths

If the user did not provide a long enough command buffer then the missing
bytes are forced to zero. There is no reason to check the length if a zero
value is OK.

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