[SCSI] qla2xxx: Block flash access from application when device is initialized for...
[linux-flexiantxendom0-3.2.10.git] / drivers / scsi / qla2xxx / qla_bsg.c
index f74cc06..bc3cc6d 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;