diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2012-04-25 18:26:14 +0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-05-10 11:10:58 +0400 |
commit | a49393f2ae13e3a0c61dbdbea77c2ff7614df474 (patch) | |
tree | efe0cbeb4d55a0dea42ffc9aa03430376d9ab3c9 /drivers/scsi/qla2xxx/qla_bsg.c | |
parent | f4e1648a4f4acc964cefc51c1637aad0dca6c517 (diff) | |
download | linux-a49393f2ae13e3a0c61dbdbea77c2ff7614df474.tar.xz |
[SCSI] qla2xxx: Block flash access from application when device is initialized for ISP82xx.
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>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_bsg.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index f74cc0602f3b..bc3cc6d91117 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -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; |