diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-23 08:08:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-24 15:41:54 -0700 |
commit | c2f12630c60ff33a9cafd221646053fc10ec59b6 (patch) | |
tree | 13a34d0e37c35537253ea052d60de462b17c0f0a /net/netfilter/nf_sockopt.c | |
parent | ab214d1bf8c7ef1ed7af803a72491cb29edfa8f5 (diff) | |
download | linux-c2f12630c60ff33a9cafd221646053fc10ec59b6.tar.gz linux-c2f12630c60ff33a9cafd221646053fc10ec59b6.tar.bz2 linux-c2f12630c60ff33a9cafd221646053fc10ec59b6.zip |
netfilter: switch nf_setsockopt to sockptr_t
Pass a sockptr_t to prepare for set_fs-less handling of the kernel
pointer from bpf-cgroup.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nf_sockopt.c')
-rw-r--r-- | net/netfilter/nf_sockopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_sockopt.c b/net/netfilter/nf_sockopt.c index 90469b1f628a..34afcd03b6f6 100644 --- a/net/netfilter/nf_sockopt.c +++ b/net/netfilter/nf_sockopt.c @@ -89,7 +89,7 @@ out: return ops; } -int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, +int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, sockptr_t opt, unsigned int len) { struct nf_sockopt_ops *ops; |