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-10-24 11:13:12 -05:00
2011-10-31 19:30:30 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 19:30:30 -04:00
2011-10-31 19:30:30 -04:00
2011-10-31 19:30:30 -04:00
2011-12-07 03:12:59 +08:00
2011-12-21 13:18:22 -05:00
2011-12-22 22:34:56 -05:00
2011-11-21 16:46:24 -05:00
2011-10-17 19:22:46 -04:00
2011-12-13 14:59:42 -08:00
2011-12-23 02:15:14 -05:00
2011-10-31 19:30:30 -04:00
2011-11-21 16:45:26 -05:00
2011-11-26 15:49:07 -05:00
2011-03-17 11:59:32 +11:00
2011-10-31 19:30:28 -04:00
2011-07-03 20:05:16 -07:00
2011-09-15 14:49:44 -04:00
2011-10-31 19:30:30 -04:00
2011-12-22 22:34:56 -05:00
2011-12-22 22:34:56 -05:00
2011-10-31 19:30:30 -04:00
2011-10-31 19:30:30 -04: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-12-19 15:58:52 -05:00
2011-12-09 14:07:12 -05:00
2011-12-31 16:59:04 +01:00
2011-11-29 16:48:52 -05:00
2011-09-28 13:29:50 -04:00
2011-10-31 19:30:30 -04:00
2011-12-15 13:47:58 -05:00
2011-12-27 22:32:41 -05:00
2011-10-31 19:30:30 -04:00
2011-11-14 00:10:50 -05:00
2011-10-31 19:30:29 -04:00
2011-10-31 19:30:30 -04:00
2011-10-31 19:30:30 -04:00
2011-12-24 16:08:50 -05:00
2011-12-20 13:58:37 -05:00
2011-12-01 14:16:17 -05:00
2011-10-31 19:30:30 -04:00
2011-11-26 16:34:22 -05:00
2011-11-07 13:27:30 -05:00
2011-10-31 19:30:30 -04:00
2011-12-05 11:05:44 -05:00
2011-11-06 19:44:47 -08:00
2011-12-21 16:48:08 -05:00
2011-10-31 19:30:30 -04: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
2011-09-22 03:23:13 -04:00
2011-10-31 19:30:30 -04:00