Bug#514644: [PATCH 1/2] ipv6: Clamp reported valid_lft to a minimum of 0

2010-06-26 Thread Ben Hutchings
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: Piotr Lewandowski Signed-off-by: Ben Hutchings --- This is compile-tested only. I don't claim any famil

Bug#514644: [PATCH 1/2] ipv6: Clamp reported valid_lft to a minimum of 0

2010-06-30 Thread David Miller
From: Ben Hutchings Date: Sat, 26 Jun 2010 22:37:47 +0100 > 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: Piotr Lewandowski > Signed-off-by: