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>
This commit is contained in:

committed by
David S. Miller

parent
77d4df41d5
commit
c34bc10d25
@@ -1179,8 +1179,7 @@ do_add_counters(struct net *net, const void __user *user, unsigned int len)
|
||||
struct ip6t_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);
|
||||
t = xt_find_table_lock(net, AF_INET6, tmp.name);
|
||||
|
Reference in New Issue
Block a user