aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r--net/tipc/node.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c
index 2670751d0e2e..d3f7ca202281 100644
--- a/net/tipc/node.c
+++ b/net/tipc/node.c
@@ -493,6 +493,7 @@ void tipc_node_check_dest(struct net *net, u32 onode,
493 bool link_up = false; 493 bool link_up = false;
494 bool accept_addr = false; 494 bool accept_addr = false;
495 bool reset = true; 495 bool reset = true;
496 char *if_name;
496 497
497 *dupl_addr = false; 498 *dupl_addr = false;
498 *respond = false; 499 *respond = false;
@@ -579,7 +580,10 @@ void tipc_node_check_dest(struct net *net, u32 onode,
579 pr_warn("Cannot establish 3rd link to %x\n", n->addr); 580 pr_warn("Cannot establish 3rd link to %x\n", n->addr);
580 goto exit; 581 goto exit;
581 } 582 }
582 if (!tipc_link_create(n, b, mod(tipc_net(net)->random), 583 if_name = strchr(b->name, ':') + 1;
584 if (!tipc_link_create(n, if_name, b->identity, b->tolerance,
585 b->net_plane, b->mtu, b->priority,
586 b->window, mod(tipc_net(net)->random),
583 tipc_own_addr(net), onode, &le->maddr, 587 tipc_own_addr(net), onode, &le->maddr,
584 &le->inputq, &n->bclink.namedq, &l)) { 588 &le->inputq, &n->bclink.namedq, &l)) {
585 *respond = false; 589 *respond = false;