diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-17 08:23:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-19 18:16:40 -0700 |
commit | c34bc10d2535719ddf77d44ee849f6c7589583ba (patch) | |
tree | fdc4fc6e1dced7ed755e0b81245c17f8c9b47f44 /net/ipv4/netfilter/ip_tables.c | |
parent | netfilter: remove the compat_{get,set} methods (diff) | |
download | wireguard-linux-c34bc10d2535719ddf77d44ee849f6c7589583ba.tar.xz wireguard-linux-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/ip_tables.c')
-rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index fbfad38f3979..161901dd1cae 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c @@ -1163,8 +1163,7 @@ do_add_counters(struct net *net, const void __user *user, struct ipt_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); |