]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
[SCSI] qla2xxx: Block flash access from application when device is initialized for...
authorGiridhar Malavali <giridhar.malavali@qlogic.com>
Wed, 25 Apr 2012 14:26:14 +0000 (07:26 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 10 May 2012 07:10:58 +0000 (08:10 +0100)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_bsg.c
drivers/scsi/qla2xxx/qla_sup.c

index f74cc0602f3bb5db23c3315bce90b6dc3ce8ed43..bc3cc6d91117ab58b103e889370c89f8402bd6f9 100644 (file)
@@ -1367,6 +1367,9 @@ qla2x00_read_optrom(struct fc_bsg_job *bsg_job)
        struct qla_hw_data *ha = vha->hw;
        int rval = 0;
 
+       if (ha->flags.isp82xx_reset_hdlr_active)
+               return -EBUSY;
+
        rval = qla2x00_optrom_setup(bsg_job, vha, 0);
        if (rval)
                return rval;
index 3c13c0a6be63cfa2f00ae5b7022031828c79143d..a683e766d1aea088115eb3bde698ebf8390c5a1d 100644 (file)
@@ -1017,6 +1017,9 @@ qla2xxx_flash_npiv_conf(scsi_qla_host_t *vha)
            !IS_CNA_CAPABLE(ha) && !IS_QLA2031(ha))
                return;
 
+       if (ha->flags.isp82xx_reset_hdlr_active)
+               return;
+
        ha->isp_ops->read_optrom(vha, (uint8_t *)&hdr,
            ha->flt_region_npiv_conf << 2, sizeof(struct qla_npiv_header));
        if (hdr.version == __constant_cpu_to_le16(0xffff))