mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
cad454b12a
commit
12cec63e40
1 changed files with 4 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue