]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
tipc: Update "previous node" indicators when node address changes
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 21 May 2008 21:54:12 +0000 (14:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 May 2008 21:54:12 +0000 (14:54 -0700)
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>
net/tipc/port.c

index 757de38fe6afcf84bf69d3d98114fe0bdfea9a34..2c64ad88e3cfcb483f2c752900bad7ea0c2cfe17 100644 (file)
@@ -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);