aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorXi Wang <[email protected]>2011-12-30 15:40:17 +0000
committerPablo Neira Ayuso <[email protected]>2011-12-31 15:59:04 +0000
commitc121638277a71c1e1fb44c3e654ea353357bbc2c (patch)
treeeacfd2881aa785c462587ab8173461b96c396771 /net/unix/af_unix.c
parentipvs: try also real server with port 0 in backup server (diff)
downloadkernel-c121638277a71c1e1fb44c3e654ea353357bbc2c.tar.gz
kernel-c121638277a71c1e1fb44c3e654ea353357bbc2c.zip
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 <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions