OSDN Git Service

tipc: initialise addr_trail_end when setting node addresses
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Sun, 11 Aug 2019 20:18:25 +0000 (08:18 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:48:05 +0000 (10:48 +0200)
commitcc4ff0f4f564a4e88bb88507b6b333eced41b4bb
treef2cec8229e020f321f6ec51cba6fd1b236321a58
parente89bb758c030150f6cf0a990011f109258b815dd
tipc: initialise addr_trail_end when setting node addresses

[ Upstream commit 8874ecae2977e5a2d4f0ba301364435b81c05938 ]

We set the field 'addr_trial_end' to 'jiffies', instead of the current
value 0, at the moment the node address is initialized. This guarantees
we don't inadvertently enter an address trial period when the node
address is explicitly set by the user.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tipc/addr.c