Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12cec63e authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley
Browse files

[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: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent cad454b1
Loading
Loading
Loading
Loading
+4 −5
Original line number Original line Diff line number Diff line
@@ -620,11 +620,10 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)
		 *           vp_idx does not match
		 *           vp_idx does not match
		 *       Event is not global, vp_idx does not match
		 *       Event is not global, vp_idx does not match
		 */
		 */
		if ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff)
		if (IS_QLA2XXX_MIDTYPE(ha) &&
			|| (mb[1] != 0xffff)) {
		    ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff) ||
			if (vha->vp_idx != (mb[3] & 0xff))
			(mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff))
			break;
			break;
		}


		/* Global event -- port logout or port unavailable. */
		/* Global event -- port logout or port unavailable. */
		if (mb[1] == 0xffff && mb[2] == 0x7) {
		if (mb[1] == 0xffff && mb[2] == 0x7) {