Skip to content
Snippets Groups Projects
Commit f56619fc authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

ipv6: Clamp reported valid_lft to a minimum of 0


Since addresses are only revalidated every 2 minutes, the reported
valid_lft can underflow shortly before the address is deleted.
Clamp it to a minimum of 0, as for prefered_lft.

Reported-by: default avatarPiotr Lewandowski <piotr.lewandowski@gmail.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a9dbfe0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment