On Fri, Sep 28, 2018 at 07:34:57AM -0700, Dennis Dalessandro wrote: > From: Michael J. Ruhl <michael.j.ruhl@xxxxxxxxx> > > 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@xxxxxxxxx> > Signed-off-by: Michael J. Ruhl <michael.j.ruhl@xxxxxxxxx> > Signed-off-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx> > --- > drivers/infiniband/hw/hfi1/mad.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Applied to for-next, thanks Jason