aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_tpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/target_core_tpg.c')
-rw-r--r--drivers/target/target_core_tpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/target/target_core_tpg.c b/drivers/target/target_core_tpg.c
index 9cdfd061eacf..bbed260ec71f 100644
--- a/drivers/target/target_core_tpg.c
+++ b/drivers/target/target_core_tpg.c
@@ -274,6 +274,7 @@ struct se_node_acl *core_tpg_check_initiator_node_acl(
274 274
275 INIT_LIST_HEAD(&acl->acl_list); 275 INIT_LIST_HEAD(&acl->acl_list);
276 INIT_LIST_HEAD(&acl->acl_sess_list); 276 INIT_LIST_HEAD(&acl->acl_sess_list);
277 kref_init(&acl->acl_kref);
277 init_completion(&acl->acl_free_comp); 278 init_completion(&acl->acl_free_comp);
278 spin_lock_init(&acl->device_list_lock); 279 spin_lock_init(&acl->device_list_lock);
279 spin_lock_init(&acl->nacl_sess_lock); 280 spin_lock_init(&acl->nacl_sess_lock);
@@ -403,6 +404,7 @@ struct se_node_acl *core_tpg_add_initiator_node_acl(
403 404
404 INIT_LIST_HEAD(&acl->acl_list); 405 INIT_LIST_HEAD(&acl->acl_list);
405 INIT_LIST_HEAD(&acl->acl_sess_list); 406 INIT_LIST_HEAD(&acl->acl_sess_list);
407 kref_init(&acl->acl_kref);
406 init_completion(&acl->acl_free_comp); 408 init_completion(&acl->acl_free_comp);
407 spin_lock_init(&acl->device_list_lock); 409 spin_lock_init(&acl->device_list_lock);
408 spin_lock_init(&acl->nacl_sess_lock); 410 spin_lock_init(&acl->nacl_sess_lock);