diff options
author | David Howells <dhowells@redhat.com> | 2008-07-21 13:02:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-21 13:10:59 -0400 |
commit | 280763c053fee297d95b474f2c145990670371e6 (patch) | |
tree | daa5d6b0107318e1fb0fe4c7184c77ab0d40b6ff /net | |
parent | 584015727a3b88b46602b20077b46cd04f8b4ab3 (diff) |
netfilter: xt_time: fix time's time_mt()'s use of do_div()
Fix netfilter xt_time's time_mt()'s use of do_div() on an s64 by using
div_s64() instead.
This was introduced by patch ee4411a1b1e0b679c99686629b5eab5a072ce49f
("[NETFILTER]: x_tables: add xt_time match").
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/xt_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_time.c b/net/netfilter/xt_time.c index ed76baab4734..9f328593287e 100644 --- a/net/netfilter/xt_time.c +++ b/net/netfilter/xt_time.c | |||
@@ -173,7 +173,7 @@ time_mt(const struct sk_buff *skb, const struct net_device *in, | |||
173 | __net_timestamp((struct sk_buff *)skb); | 173 | __net_timestamp((struct sk_buff *)skb); |
174 | 174 | ||
175 | stamp = ktime_to_ns(skb->tstamp); | 175 | stamp = ktime_to_ns(skb->tstamp); |
176 | do_div(stamp, NSEC_PER_SEC); | 176 | stamp = div_s64(stamp, NSEC_PER_SEC); |
177 | 177 | ||
178 | if (info->flags & XT_TIME_LOCAL_TZ) | 178 | if (info->flags & XT_TIME_LOCAL_TZ) |
179 | /* Adjust for local timezone */ | 179 | /* Adjust for local timezone */ |