]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx4: Fix create qp command alignment
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 17 Aug 2017 12:50:35 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 20:27:10 +0000 (16:27 -0400)
commit98bb1613b3df302a0a3e1f5a004db777e743a981
treeb64cfd2fa74cb52c71c727840ed875915c523093
parent82ee1d2983bca2c2bb337b441b44ee93e642dd9d
RDMA/mlx4: Fix create qp command alignment

Avoid extra padding by replacing the order of inl_recv_sz and reserved,
otherwise 'mlx4_ib_create_qp' structure might be larger than legacy user
input leading to copy of some garbage data from the user space buffer.

Fixes: b2d3effbd3a4 ('IB/mlx4: Add inline-receive support')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/uapi/rdma/mlx4-abi.h