summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_fcpim.c
diff options
context:
space:
mode:
authorVijaya Mohan Guvva <vmohan@brocade.com>2013-05-13 02:33:22 -0700
committerJames Bottomley <JBottomley@Parallels.com>2013-06-26 11:45:51 -0700
commit1287641e945de1bf533178c2e0e31eed287b4a60 (patch)
tree7b4031e5198ec2a868b78d2f712e4fd6164e4077 /drivers/scsi/bfa/bfa_fcpim.c
parent1a898a794d5913c899a329c5dec39d28e6065672 (diff)
downloadlinux-1287641e945de1bf533178c2e0e31eed287b4a60.tar.gz
linux-1287641e945de1bf533178c2e0e31eed287b4a60.tar.bz2
linux-1287641e945de1bf533178c2e0e31eed287b4a60.zip
[SCSI] bfa: Fix WARN_ON condition check
The WARN_ON condition check in IO completion path is wrong. IOtags returned by the firmware is compared with driver/bfa iotag after masking the retry count bits. Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcpim.c')
-rw-r--r--drivers/scsi/bfa/bfa_fcpim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfa_fcpim.c b/drivers/scsi/bfa/bfa_fcpim.c
index 27b560962357..d7385d1d9c5a 100644
--- a/drivers/scsi/bfa/bfa_fcpim.c
+++ b/drivers/scsi/bfa/bfa_fcpim.c
@@ -2882,7 +2882,7 @@ bfa_ioim_good_comp_isr(struct bfa_s *bfa, struct bfi_msg_s *m)
iotag = be16_to_cpu(rsp->io_tag);
ioim = BFA_IOIM_FROM_TAG(fcpim, iotag);
- WARN_ON(BFA_IOIM_TAG_2_ID(ioim->iotag) != iotag);
+ WARN_ON(ioim->iotag != iotag);
bfa_ioim_cb_profile_comp(fcpim, ioim);