diff options
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r-- | net/tipc/link.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index 1055164c6232..ecc12411155e 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -1492,8 +1492,9 @@ static int tipc_link_proto_rcv(struct tipc_link *l, struct sk_buff *skb, | |||
1492 | if (in_range(peers_tol, TIPC_MIN_LINK_TOL, TIPC_MAX_LINK_TOL)) | 1492 | if (in_range(peers_tol, TIPC_MIN_LINK_TOL, TIPC_MAX_LINK_TOL)) |
1493 | l->tolerance = peers_tol; | 1493 | l->tolerance = peers_tol; |
1494 | 1494 | ||
1495 | if (peers_prio && in_range(peers_prio, TIPC_MIN_LINK_PRI, | 1495 | /* Update own prio if peer indicates a different value */ |
1496 | TIPC_MAX_LINK_PRI)) { | 1496 | if ((peers_prio != l->priority) && |
1497 | in_range(peers_prio, 1, TIPC_MAX_LINK_PRI)) { | ||
1497 | l->priority = peers_prio; | 1498 | l->priority = peers_prio; |
1498 | rc = tipc_link_fsm_evt(l, LINK_FAILURE_EVT); | 1499 | rc = tipc_link_fsm_evt(l, LINK_FAILURE_EVT); |
1499 | } | 1500 | } |