|
@@ -312,7 +312,7 @@ struct target_fabric_configfs *target_fabric_configfs_init(
|
|
|
|
|
|
tf = kzalloc(sizeof(struct target_fabric_configfs), GFP_KERNEL);
|
|
tf = kzalloc(sizeof(struct target_fabric_configfs), GFP_KERNEL);
|
|
if (!(tf))
|
|
if (!(tf))
|
|
- return ERR_PTR(-ENOMEM);
|
|
|
|
|
|
+ return NULL;
|
|
|
|
|
|
INIT_LIST_HEAD(&tf->tf_list);
|
|
INIT_LIST_HEAD(&tf->tf_list);
|
|
atomic_set(&tf->tf_access_cnt, 0);
|
|
atomic_set(&tf->tf_access_cnt, 0);
|