Skip to content

Commit

Permalink
IB/hfi1: Set port number for errorinfo MAD response
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael J. Ruhl <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
  • Loading branch information
mjruhl authored and jgunthorpe committed May 24, 2018
1 parent c831481 commit 5938d94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/hfi1/mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 5938d94

Please sign in to comment.