diff options
author | Vijaya Mohan Guvva <vmohan@brocade.com> | 2013-05-13 05:33:31 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-06-26 19:47:36 -0400 |
commit | 36ec9712d5c353636f3be959c153f9b2199854de (patch) | |
tree | ed53d16cb6cba726eaef4df9924457a4ba6af598 /drivers | |
parent | ea3837a7121a18f5a4f3be2b8c66ab78d8263988 (diff) |
[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: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcs_rport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs_rport.c b/drivers/scsi/bfa/bfa_fcs_rport.c index 62713a7c2daf..2035b0d64351 100644 --- a/drivers/scsi/bfa/bfa_fcs_rport.c +++ b/drivers/scsi/bfa/bfa_fcs_rport.c | |||
@@ -3430,9 +3430,10 @@ bfa_fcs_rpf_rpsc2_response(void *fcsarg, struct bfa_fcxp_s *fcxp, void *cbarg, | |||
3430 | num_ents = be16_to_cpu(rpsc2_acc->num_pids); | 3430 | num_ents = be16_to_cpu(rpsc2_acc->num_pids); |
3431 | bfa_trc(rport->fcs, num_ents); | 3431 | bfa_trc(rport->fcs, num_ents); |
3432 | if (num_ents > 0) { | 3432 | if (num_ents > 0) { |
3433 | WARN_ON(rpsc2_acc->port_info[0].pid == rport->pid); | 3433 | WARN_ON(be32_to_cpu(rpsc2_acc->port_info[0].pid) != |
3434 | bfa_ntoh3b(rport->pid)); | ||
3434 | bfa_trc(rport->fcs, | 3435 | bfa_trc(rport->fcs, |
3435 | be16_to_cpu(rpsc2_acc->port_info[0].pid)); | 3436 | be32_to_cpu(rpsc2_acc->port_info[0].pid)); |
3436 | bfa_trc(rport->fcs, | 3437 | bfa_trc(rport->fcs, |
3437 | be16_to_cpu(rpsc2_acc->port_info[0].speed)); | 3438 | be16_to_cpu(rpsc2_acc->port_info[0].speed)); |
3438 | bfa_trc(rport->fcs, | 3439 | bfa_trc(rport->fcs, |