mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
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: ea30b966f7
('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>
This commit is contained in:
parent
fba02e6cb7
commit
55f2467cd7
@ -111,8 +111,8 @@ struct mlx4_ib_create_qp {
|
||||
__u8 log_sq_bb_count;
|
||||
__u8 log_sq_stride;
|
||||
__u8 sq_no_prefetch;
|
||||
__u32 inl_recv_sz;
|
||||
__u8 reserved;
|
||||
__u32 inl_recv_sz;
|
||||
};
|
||||
|
||||
struct mlx4_ib_create_wq {
|
||||
|
Loading…
Reference in New Issue
Block a user