Commit 36ec9712 authored by Vijaya Mohan Guvva's avatar Vijaya Mohan Guvva Committed by James Bottomley

[SCSI] bfa: Fix bug_on condition in RPSC rsp handling

Fix bug_on condition check in RPSC (Report Port Speed Capabilities)
response processing.
Signed-off-by: default avatarVijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent ea3837a7
...@@ -3430,9 +3430,10 @@ bfa_fcs_rpf_rpsc2_response(void *fcsarg, struct bfa_fcxp_s *fcxp, void *cbarg, ...@@ -3430,9 +3430,10 @@ bfa_fcs_rpf_rpsc2_response(void *fcsarg, struct bfa_fcxp_s *fcxp, void *cbarg,
num_ents = be16_to_cpu(rpsc2_acc->num_pids); num_ents = be16_to_cpu(rpsc2_acc->num_pids);
bfa_trc(rport->fcs, num_ents); bfa_trc(rport->fcs, num_ents);
if (num_ents > 0) { if (num_ents > 0) {
WARN_ON(rpsc2_acc->port_info[0].pid == rport->pid); WARN_ON(be32_to_cpu(rpsc2_acc->port_info[0].pid) !=
bfa_ntoh3b(rport->pid));
bfa_trc(rport->fcs, bfa_trc(rport->fcs,
be16_to_cpu(rpsc2_acc->port_info[0].pid)); be32_to_cpu(rpsc2_acc->port_info[0].pid));
bfa_trc(rport->fcs, bfa_trc(rport->fcs,
be16_to_cpu(rpsc2_acc->port_info[0].speed)); be16_to_cpu(rpsc2_acc->port_info[0].speed));
bfa_trc(rport->fcs, bfa_trc(rport->fcs,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment