mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
scst_lib: Fix procfs build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6503 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4329,9 +4329,9 @@ struct scst_acg *scst_alloc_add_acg(struct scst_tgt *tgt,
|
||||
if (rc != 0)
|
||||
goto out_del;
|
||||
}
|
||||
#endif
|
||||
|
||||
kobject_get(&tgt->tgt_kobj);
|
||||
#endif
|
||||
|
||||
out:
|
||||
TRACE_EXIT_HRES(acg);
|
||||
@@ -4418,7 +4418,9 @@ static void scst_free_acg(struct scst_acg *acg)
|
||||
kfree(acg->acg_name);
|
||||
kfree(acg);
|
||||
|
||||
#ifndef CONFIG_SCST_PROC
|
||||
kobject_put(&tgt->tgt_kobj);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void scst_release_acg(struct kref *kref)
|
||||
|
||||
Reference in New Issue
Block a user