RDMA/mlx5: Fix udata response upon SRQ creation
authorYishai Hadas <yishaih@mellanox.com>
Mon, 6 Apr 2020 17:35:40 +0000 (20:35 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Apr 2020 18:56:34 +0000 (15:56 -0300)
commitcf26deff9036cd3270af562dbec545239e5c7f07
tree360c06d550430bd2348c9ffd99256588250663fd
parent0184afd15a141d7ce24c32c0d86a1e3ba6bc0eb3
RDMA/mlx5: Fix udata response upon SRQ creation

Fix udata response upon SRQ creation to use the UAPI structure (i.e.
mlx5_ib_create_srq_resp). It did not zero the reserved field in userspace.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Link: https://lore.kernel.org/r/20200406173540.1466477-1-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/srq.c