]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rxe: Use the correct size of wqe when processing SRQ
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 29 Jul 2021 22:00:38 +0000 (17:00 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 Aug 2021 15:45:22 +0000 (12:45 -0300)
commita5d7743cf6b1f81e46955afd4d506cb3b7c39ea9
tree52c9847587e4fe81ad97e994f536ce28f6b35102
parent11d5a1b62a1b911d97ca0a7ebac6551ef235e034
RDMA/rxe: Use the correct size of wqe when processing SRQ

The memcpy() that copies a WQE from a SRQ the QP uses an incorrect size.
The size should have been the size of the rxe_send_wqe struct not the size
of a pointer to it. The result is that IO operations using a SRQ on the
responder side will fail.

Fixes: 052371cb550d ("RDMA/rxe: Fix over copying in get_srq_wqe")
Link: https://lore.kernel.org/r/20210729220039.18549-2-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_resp.c