commit | c121638277a71c1e1fb44c3e654ea353357bbc2c | [log] [tgz] |
---|---|---|
author | Xi Wang <xi.wang@gmail.com> | Fri Dec 30 10:40:17 2011 -0500 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Sat Dec 31 16:59:04 2011 +0100 |
tree | eacfd2881aa785c462587ab8173461b96c396771 | |
parent | 52793dbe3d60bd73bbebe28b2bfc9f6b4b920d4c [diff] |
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>