diff options
author | Dmitry Bogdanov <d.bogdanov@yadro.com> | 2021-09-10 10:41:27 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-05 05:27:38 +0200 |
commit | 80ed33c8ba932480be99f73dc3f29e1f7da1582c (patch) | |
tree | 59a501745fe4a301e1bdd143783317b52cc5fa73 /drivers/target/target_core_configfs.c | |
parent | scsi: megaraid_sas: Driver version update to 07.719.03.00-rc1 (diff) | |
download | linux-80ed33c8ba932480be99f73dc3f29e1f7da1582c.tar.xz linux-80ed33c8ba932480be99f73dc3f29e1f7da1582c.zip |
scsi: target: core: Add common tpg/enable attribute
Many fabric modules provide their own implementation of enable attribute in
tpg.
Provide a way to remove code duplication in the fabric modules and
automatically add "enable" attribute if a fabric module has an
implementation of fabric_enable_tpg().
Link: https://lore.kernel.org/r/20210910084133.17956-2-d.bogdanov@yadro.com
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/target_core_configfs.c')
-rw-r--r-- | drivers/target/target_core_configfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 102ec644bc8a..3b9e50c1ccef 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c @@ -490,6 +490,7 @@ void target_unregister_template(const struct target_core_fabric_ops *fo) * fabric driver unload of TFO->module to proceed. */ rcu_barrier(); + kfree(t->tf_tpg_base_cit.ct_attrs); kfree(t); return; } |