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:
Bart Van Assche
2015-09-15 05:27:12 +00:00
parent 4fb4de5401
commit dee1c4e0fc

View File

@@ -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)