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
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user