projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5840157
)
netfilter: xt_time: fix time's time_mt()'s use of do_div()
author
David Howells
<
[email protected]
>
Mon, 21 Jul 2008 17:02:12 +0000
(10:02 -0700)
committer
David S. Miller
<
[email protected]
>
Mon, 21 Jul 2008 17:10:59 +0000
(10:10 -0700)
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 <
[email protected]
>
Signed-off-by: Patrick McHardy <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/netfilter/xt_time.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_time.c
b/net/netfilter/xt_time.c
index ed76baab47349c609c6de4cdf07c36ec12f98c21..9f328593287eabfcaf8c13e013fbc5458e61da89 100644
(file)
--- 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,
__net_timestamp((struct sk_buff *)skb);
stamp = ktime_to_ns(skb->tstamp);
-
do_div
(stamp, NSEC_PER_SEC);
+
stamp = div_s64
(stamp, NSEC_PER_SEC);
if (info->flags & XT_TIME_LOCAL_TZ)
/* Adjust for local timezone */