Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344766
b: refs/heads/master
c: e1fe206
h: refs/heads/master
v: v3
  • Loading branch information
Chris Boot authored and Nicholas Bellinger committed Dec 13, 2012
1 parent 9994ea2 commit ce3e55a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37419d674ca99739dbee5ada28b50aacc29c94e1
refs/heads/master: e1fe2060d7e8f58a69374135e32e90f0bb79a7fd
17 changes: 10 additions & 7 deletions trunk/drivers/target/sbp/sbp_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -2208,20 +2208,23 @@ static struct se_portal_group *sbp_make_tpg(
tport->mgt_agt = sbp_management_agent_register(tport);
if (IS_ERR(tport->mgt_agt)) {
ret = PTR_ERR(tport->mgt_agt);
kfree(tpg);
return ERR_PTR(ret);
goto out_free_tpg;
}

ret = core_tpg_register(&sbp_fabric_configfs->tf_ops, wwn,
&tpg->se_tpg, (void *)tpg,
TRANSPORT_TPG_TYPE_NORMAL);
if (ret < 0) {
sbp_management_agent_unregister(tport->mgt_agt);
kfree(tpg);
return ERR_PTR(ret);
}
if (ret < 0)
goto out_unreg_mgt_agt;

return &tpg->se_tpg;

out_unreg_mgt_agt:
sbp_management_agent_unregister(tport->mgt_agt);
out_free_tpg:
tport->tpg = NULL;
kfree(tpg);
return ERR_PTR(ret);
}

static void sbp_drop_tpg(struct se_portal_group *se_tpg)
Expand Down

0 comments on commit ce3e55a

Please sign in to comment.