From: Xi Wang Date: Fri, 30 Dec 2011 15:40:17 +0000 (-0500) Subject: netfilter: ctnetlink: fix timeout calculation X-Git-Tag: v3.2~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c121638277a71c1e1fb44c3e654ea353357bbc2c;p=pandora-kernel.git 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 Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed