Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Vijaya Mohan Guvva and committed by
James Bottomley
1287641e 1a898a79

+1 -1
+1 -1
drivers/scsi/bfa/bfa_fcpim.c
··· 2882 2882 iotag = be16_to_cpu(rsp->io_tag); 2883 2883 2884 2884 ioim = BFA_IOIM_FROM_TAG(fcpim, iotag); 2885 - WARN_ON(BFA_IOIM_TAG_2_ID(ioim->iotag) != iotag); 2885 + WARN_ON(ioim->iotag != iotag); 2886 2886 2887 2887 bfa_ioim_cb_profile_comp(fcpim, ioim); 2888 2888