]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv6/raw.c
Merge tag 'usercopy-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[linux.git] / net / ipv6 / raw.c
index ddda7eb3c623417151c37f4178872f90498f0d52..4c25339b19843501a3887fd6d6975953a57ec84d 100644 (file)
@@ -1272,6 +1272,8 @@ struct proto rawv6_prot = {
        .hash              = raw_hash_sk,
        .unhash            = raw_unhash_sk,
        .obj_size          = sizeof(struct raw6_sock),
+       .useroffset        = offsetof(struct raw6_sock, filter),
+       .usersize          = sizeof_field(struct raw6_sock, filter),
        .h.raw_hash        = &raw_v6_hashinfo,
 #ifdef CONFIG_COMPAT
        .compat_setsockopt = compat_rawv6_setsockopt,