summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1
diff options
context:
space:
mode:
authorMichael J. Ruhl2018-05-16 03:31:17 +0200
committerJason Gunthorpe2018-05-24 17:39:25 +0200
commit5938d94cf0380bca9e6fbb910c010f4483906c11 (patch)
treec0d0b3e45eb88199c297aa4336a391bf9c50348c /drivers/infiniband/hw/hfi1
parentIB/hfi1: Cleanup of exp_rcv (diff)
downloadkernel-qcow2-linux-5938d94cf0380bca9e6fbb910c010f4483906c11.tar.gz
kernel-qcow2-linux-5938d94cf0380bca9e6fbb910c010f4483906c11.tar.xz
kernel-qcow2-linux-5938d94cf0380bca9e6fbb910c010f4483906c11.zip
IB/hfi1: Set port number for errorinfo MAD response
For errorinfo MAD requests, the response has a 0 port number left over from a memset. Instead we should always set the port number in the response. 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: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1')
-rw-r--r--drivers/infiniband/hw/hfi1/mad.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/mad.c b/drivers/infiniband/hw/hfi1/mad.c
index 983b5794a660..0307405491e0 100644
--- a/drivers/infiniband/hw/hfi1/mad.c
+++ b/drivers/infiniband/hw/hfi1/mad.c
@@ -3424,6 +3424,7 @@ static int pma_get_opa_errorinfo(struct opa_pma_mad *pmp,
pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
return reply((struct ib_mad_hdr *)pmp);
}
+ rsp->port_number = port;
/* PortRcvErrorInfo */
rsp->port_rcv_ei.status_and_code =