diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 8cad9a046ad9..3187909759a0 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -2966,11 +2966,14 @@ qla2x00_get_flash_image_status(struct bsg_job *bsg_job) static int qla2x00_get_drv_attr(struct bsg_job *bsg_job) { + scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); struct qla_drv_attr drv_attr; struct fc_bsg_reply *bsg_reply = bsg_job->reply; + struct qla_hw_data *ha = vha->hw; memset(&drv_attr, 0, sizeof(struct qla_drv_attr)); - drv_attr.ext_attributes |= QLA_IMG_SET_VALID_SUPPORT; + if (!IS_QLA29XX(ha)) + drv_attr.ext_attributes |= QLA_IMG_SET_VALID_SUPPORT; sg_copy_from_buffer(bsg_job->reply_payload.sg_list,