linux/drivers/infiniband
Michael J. Ruhl 935c84ac64 IB/hfi1: Error path MAD response size is incorrect
If a MAD packet has incorrect header information, the logic uses the reply
path to report the error.  The reply path expects *resp_len to be set
prior to return.  Unfortunately, *resp_len is set to 0 for this path.
This causes an incorrect response packet.

Fix by ensuring that the *resp_len is defaulted to the incoming packet
size (wc->bytes_len - sizeof(GRH)).

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-09-30 19:21:11 -06:00
..
core RDMA/core: Acquire and release mmap_sem on page range 2018-09-27 12:40:20 -06:00
hw IB/hfi1: Error path MAD response size is incorrect 2018-09-30 19:21:11 -06:00
sw IB/rxe: replace kvfree with vfree 2018-09-30 19:20:38 -06:00
ulp IB/iser: Fix possible NULL deref at iser_inv_desc() 2018-09-28 09:53:49 -06:00
Kconfig IB/ucm: fix UCM link error 2018-08-21 16:56:32 -06:00
Makefile