aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-05-21 17:54:12 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-21 17:54:12 -0400
commit6d4a6672c8263f98544d2b91690dc7074b144090 (patch)
tree36c8b5dba916d4f50002a190ca7e2b095435d6ba /net/tipc
parent811102ca23dfdde5ee8b782b3a4bbff44c499cb2 (diff)
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>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/port.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c
index 757de38fe6af..2c64ad88e3cf 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -780,6 +780,7 @@ void tipc_port_reinit(void)
780 msg = &p_ptr->publ.phdr; 780 msg = &p_ptr->publ.phdr;
781 if (msg_orignode(msg) == tipc_own_addr) 781 if (msg_orignode(msg) == tipc_own_addr)
782 break; 782 break;
783 msg_set_prevnode(msg, tipc_own_addr);
783 msg_set_orignode(msg, tipc_own_addr); 784 msg_set_orignode(msg, tipc_own_addr);
784 } 785 }
785 spin_unlock_bh(&tipc_port_list_lock); 786 spin_unlock_bh(&tipc_port_list_lock);