aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/machxo2-spi.c
diff options
context:
space:
mode:
authorBob Pearson <[email protected]>2021-06-17 23:57:41 -0500
committerJason Gunthorpe <[email protected]>2021-06-22 15:38:52 -0300
commitec0fa2445c18ec49a0b7ee0aaa82d1ec00968fc9 (patch)
treeb9285d2087845262335b5c24854eded11ec4cae7 /drivers/fpga/machxo2-spi.c
parent1993cbed65bb590a3479d175fc1ac3c775b6bba8 (diff)
RDMA/rxe: Fix over copying in get_srq_wqe
Currently get_srq_wqe() in rxe_resp.c copies the maximum possible number of bytes from the wqe into the QPs copy of the SRQ wqe. This is usually extra work and risks reading past the end of the SRQ circular buffer if the SRQ is configured with less than the maximum possible number of SGEs. Check the number of SGEs is not too large. Compute the actual number of bytes in the WR and copy only those. Fixes: 8700e3e7c485 ("Soft RoCE driver") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bob Pearson <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions