]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix compatibility bug
authorJon Paul Maloy <jon.maloy@ericsson.com>
Tue, 21 Jul 2015 10:42:28 +0000 (06:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 23:23:50 +0000 (16:23 -0700)
commitc6c76f600d2305907118de43cbb60e470ecc88a8
tree962060fffaf9c8409e16c7c53a1f22d25c2fa093
parent8ecc31d3ed0b847c407527f86dada7d1f8c1c6d8
tipc: fix compatibility bug

In commit bd65c9263c6c70e74819e3a54ca27c9c6d0c1a24
("tipc: reduce locking scope during packet reception") we introduced
a new function tipc_link_proto_rcv(). This function contains a bug,
so that it sometimes by error sends out a non-zero link priority value
in created protocol messages.

The bug may lead to an extra link reset at initial link establising
with older nodes. This will never happen more than once, whereafter
the link will work as intended.

We fix this bug in this commit.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c