]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2019 04:40:04 +0000 (21:40 -0700)
commit56076003d1a966b322dd2d0b78d722e440f3f11e
treef24039257989cea6288c9f8b6922a3a161801884
parentb314ef8f8d1aac725306d25c5327aebd0aede846
tipc: initialise addr_trail_end when setting node addresses

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>
net/tipc/addr.c