aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ipv6.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-03-29 17:18:30 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-20 20:31:27 -0400
commit931ca7ab7fe804d77bc6952f1512950c0d870f26 (patch)
treeec55897513da03af5bc76b9f9f7a33ad1d59b4f6 /include/net/ipv6.h
parentcompat_ip{,v6}_setsockopt(): enumerate MCAST_... options explicitly (diff)
downloadlinux-dev-931ca7ab7fe804d77bc6952f1512950c0d870f26.tar.xz
linux-dev-931ca7ab7fe804d77bc6952f1512950c0d870f26.zip
ip*_mc_gsfget(): lift copyout of struct group_filter into callers
pass the userland pointer to the array in its tail, so that part gets copied out by our functions; copyout of everything else is done in the callers. Rationale: reuse for compat; the array is the same in native and compat, the layout of parts before it is different for compat. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r--include/net/ipv6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index 5fc3a9d7b053..c45eb78d970f 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -1138,7 +1138,7 @@ int ip6_mc_source(int add, int omode, struct sock *sk,
struct group_source_req *pgsr);
int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf);
int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf,
- struct group_filter __user *optval, int __user *optlen);
+ struct sockaddr_storage __user *p);
#ifdef CONFIG_PROC_FS
int ac6_proc_init(struct net *net);