Xi Wang c121638277 netfilter: ctnetlink: fix timeout calculation
The sanity check (timeout < 0) never works; the dividend is unsigned
and so is the division, which should have been a signed division.

	long timeout = (ct->timeout.expires - jiffies) / HZ;
	if (timeout < 0)
		timeout = 0;

This patch converts the time values to signed for the division.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2011-12-31 16:59:04 +01:00
..
2011-12-22 22:34:56 -05:00
2011-12-23 02:15:14 -05:00
2011-11-26 15:49:07 -05:00
2011-03-17 11:59:32 +11:00
2011-12-22 22:34:56 -05:00
2011-12-22 22:34:56 -05:00
2011-10-13 16:05:07 -04:00
2011-06-16 23:19:27 -04:00
2011-11-26 15:57:36 -05:00
2011-09-16 19:20:20 -04:00
2011-11-14 00:10:50 -05:00
2011-07-05 15:26:57 -04:00
2011-07-05 15:26:57 -04:00
2010-10-15 15:53:27 +02:00