diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2010-03-19 16:59:17 -0700 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-27 15:11:30 -0400 |
commit | 12cec63e40f9b9c2a4766a0f43404a9642062f35 (patch) | |
tree | dda8079ff812c8d8235813b75d3d90758f4472a2 /drivers/scsi/qla2xxx/qla_isr.c | |
parent | cad454b12a23c24fd7f409402cf51434655e76c1 (diff) | |
download | kernel_samsung_aries-12cec63e40f9b9c2a4766a0f43404a9642062f35.zip kernel_samsung_aries-12cec63e40f9b9c2a4766a0f43404a9642062f35.tar.gz kernel_samsung_aries-12cec63e40f9b9c2a4766a0f43404a9642062f35.tar.bz2 |
[SCSI] qla2xxx: Correct vp_idx checking during PORT_UPDATE processing.
Checks should only be done for NPIV-capable ISPs. Original code
could result in PORT_UPDATEs being missed on non-NPIV-capable
ISPs.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index ab90329..295337d 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -620,11 +620,10 @@ skip_rio: * vp_idx does not match * Event is not global, vp_idx does not match */ - if ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff) - || (mb[1] != 0xffff)) { - if (vha->vp_idx != (mb[3] & 0xff)) - break; - } + if (IS_QLA2XXX_MIDTYPE(ha) && + ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff) || + (mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff)) + break; /* Global event -- port logout or port unavailable. */ if (mb[1] == 0xffff && mb[2] == 0x7) { |