diff --git a/scst/include/scst.h b/scst/include/scst.h index b3daed55f..bbdec2023 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -4046,8 +4046,8 @@ struct scst_sysfs_work_item { }; struct scst_session *sess; struct { - struct scst_tgt *tgt; - unsigned long l; + struct scst_tgt *tgt_r; + unsigned long rel_tgt_id; }; }; int work_res; diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 2c6688b4d..26a648f38 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -2112,8 +2112,8 @@ static ssize_t scst_rel_tgt_id_show(struct kobject *kobj, static int scst_process_rel_tgt_id_store(struct scst_sysfs_work_item *work) { int res = 0; - struct scst_tgt *tgt = work->tgt; - unsigned long rel_tgt_id = work->l; + struct scst_tgt *tgt = work->tgt_r; + unsigned long rel_tgt_id = work->rel_tgt_id; TRACE_ENTRY(); @@ -2180,8 +2180,8 @@ static ssize_t scst_rel_tgt_id_store(struct kobject *kobj, if (res != 0) goto out; - work->tgt = tgt; - work->l = rel_tgt_id; + work->tgt_r = tgt; + work->rel_tgt_id = rel_tgt_id; kobject_get(&tgt->tgt_kobj);