We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24528f0 commit 12d5a43Copy full SHA for 12d5a43
drivers/target/iscsi/iscsi_target_configfs.c
@@ -1123,7 +1123,7 @@ static struct se_portal_group *lio_target_tiqn_addtpg(
1123
1124
ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI);
1125
if (ret < 0)
1126
- return NULL;
+ goto free_out;
1127
1128
ret = iscsit_tpg_add_portal_group(tiqn, tpg);
1129
if (ret != 0)
@@ -1135,6 +1135,7 @@ static struct se_portal_group *lio_target_tiqn_addtpg(
1135
return &tpg->tpg_se_tpg;
1136
out:
1137
core_tpg_deregister(&tpg->tpg_se_tpg);
1138
+free_out:
1139
kfree(tpg);
1140
return NULL;
1141
}
0 commit comments