aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/arp_tables.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-17 08:23:21 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-19 18:16:40 -0700
commitc34bc10d2535719ddf77d44ee849f6c7589583ba (patch)
treefdc4fc6e1dced7ed755e0b81245c17f8c9b47f44 /net/ipv4/netfilter/arp_tables.c
parentnetfilter: remove the compat_{get,set} methods (diff)
downloadlinux-dev-c34bc10d2535719ddf77d44ee849f6c7589583ba.tar.xz
linux-dev-c34bc10d2535719ddf77d44ee849f6c7589583ba.zip
netfilter: remove the compat argument to xt_copy_counters_from_user
Lift the in_compat_syscall() from the callers instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/arp_tables.c')
-rw-r--r--net/ipv4/netfilter/arp_tables.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
index 15807fb4a65f..2c8a4dad39d7 100644
--- a/net/ipv4/netfilter/arp_tables.c
+++ b/net/ipv4/netfilter/arp_tables.c
@@ -1008,8 +1008,7 @@ static int do_add_counters(struct net *net, const void __user *user,
struct arpt_entry *iter;
unsigned int addend;
- paddc = xt_copy_counters_from_user(user, len, &tmp,
- in_compat_syscall());
+ paddc = xt_copy_counters_from_user(user, len, &tmp);
if (IS_ERR(paddc))
return PTR_ERR(paddc);