net: ipv6: Cancel the prefix timer before setting it again
If the earlier prefix timeout is not cancelled before setting it again, the system will hang. Change-Id: I6e271294c8e5d43e3ceae4780b5d1c26bab2b296 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
f7a5612ba2
commit
51dea40f80
@ -907,6 +907,8 @@ void net_if_ipv6_prefix_set_timer(struct net_if_ipv6_prefix *prefix,
|
||||
|
||||
NET_DBG("Prefix lifetime %u ms", timeout);
|
||||
|
||||
net_if_ipv6_prefix_unset_timer(prefix);
|
||||
|
||||
k_delayed_work_init(&prefix->lifetime, prefix_lf_timeout);
|
||||
k_delayed_work_submit(&prefix->lifetime, timeout);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user