RDMA/mlx5: Fix udata response upon SRQ creation
authorYishai Hadas <yishaih@mellanox.com>
Mon, 6 Apr 2020 17:35:40 +0000 (20:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:20 +0000 (17:50 +0200)
commit02416142fdf4b37fed04aa74ac42b9527045fecf
treebb0fc36052fa27fdf5804a3a39e62c4af07a6f94
parent7acbadd1aa294b422657f90d3349f20c06dae541
RDMA/mlx5: Fix udata response upon SRQ creation

[ Upstream commit cf26deff9036cd3270af562dbec545239e5c7f07 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/srq.c