|
@@ -101,8 +101,10 @@ static ssize_t lio_target_np_driver_store(struct config_item *item,
|
|
|
|
|
|
tpg_np_new = iscsit_tpg_add_network_portal(tpg,
|
|
tpg_np_new = iscsit_tpg_add_network_portal(tpg,
|
|
&np->np_sockaddr, tpg_np, type);
|
|
&np->np_sockaddr, tpg_np, type);
|
|
- if (IS_ERR(tpg_np_new))
|
|
|
|
|
|
+ if (IS_ERR(tpg_np_new)) {
|
|
|
|
+ rc = PTR_ERR(tpg_np_new);
|
|
goto out;
|
|
goto out;
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
tpg_np_new = iscsit_tpg_locate_child_np(tpg_np, type);
|
|
tpg_np_new = iscsit_tpg_locate_child_np(tpg_np, type);
|
|
if (tpg_np_new) {
|
|
if (tpg_np_new) {
|