diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index aa7bedf780e5..9293b9f0ac23 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
@@ -832,7 +832,7 @@ static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt, | |||
832 | len = min_t(unsigned int, len, ipv6_optlen(hdr)); | 832 | len = min_t(unsigned int, len, ipv6_optlen(hdr)); |
833 | if (copy_to_user(optval, hdr, len)) | 833 | if (copy_to_user(optval, hdr, len)) |
834 | return -EFAULT; | 834 | return -EFAULT; |
835 | return ipv6_optlen(hdr); | 835 | return len; |
836 | } | 836 | } |
837 | 837 | ||
838 | static int do_ipv6_getsockopt(struct sock *sk, int level, int optname, | 838 | static int do_ipv6_getsockopt(struct sock *sk, int level, int optname, |