Commit 6d4a6672 authored by Allan Stephens's avatar Allan Stephens Committed by David S. Miller

tipc: Update "previous node" indicators when node address changes

This patch ensures that the "previous node" field in any existing
TIPC port message header templates is updated properly when a TIPC
network address is assigned to the node.  (Previously, only the
"originating node" field was updated.)
Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 811102ca
...@@ -780,6 +780,7 @@ void tipc_port_reinit(void) ...@@ -780,6 +780,7 @@ void tipc_port_reinit(void)
msg = &p_ptr->publ.phdr; msg = &p_ptr->publ.phdr;
if (msg_orignode(msg) == tipc_own_addr) if (msg_orignode(msg) == tipc_own_addr)
break; break;
msg_set_prevnode(msg, tipc_own_addr);
msg_set_orignode(msg, tipc_own_addr); msg_set_orignode(msg, tipc_own_addr);
} }
spin_unlock_bh(&tipc_port_list_lock); spin_unlock_bh(&tipc_port_list_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment