mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
811102ca23
commit
6d4a6672c8
1 changed files with 1 additions and 0 deletions
|
@ -780,6 +780,7 @@ void tipc_port_reinit(void)
|
|||
msg = &p_ptr->publ.phdr;
|
||||
if (msg_orignode(msg) == tipc_own_addr)
|
||||
break;
|
||||
msg_set_prevnode(msg, tipc_own_addr);
|
||||
msg_set_orignode(msg, tipc_own_addr);
|
||||
}
|
||||
spin_unlock_bh(&tipc_port_list_lock);
|
||||
|
|
Loading…
Reference in a new issue