diff options
| -rw-r--r-- | net/ipv6/ipv6_sockglue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 602feec47738..4c20eeb3d568 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
| @@ -907,7 +907,7 @@ int ipv6_getsockopt(struct sock *sk, int level, int optname, | |||
| 907 | err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); | 907 | err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); |
| 908 | #ifdef CONFIG_NETFILTER | 908 | #ifdef CONFIG_NETFILTER |
| 909 | /* we need to exclude all possible EINVALs except default case */ | 909 | /* we need to exclude all possible EINVALs except default case */ |
| 910 | if (err == -ENOPROTOOPT && optname != IPV6_ADDRFORM && | 910 | if (err == -EINVAL && optname != IPV6_ADDRFORM && |
| 911 | optname != MCAST_MSFILTER) { | 911 | optname != MCAST_MSFILTER) { |
| 912 | int len; | 912 | int len; |
| 913 | 913 | ||
| @@ -944,7 +944,7 @@ int compat_ipv6_getsockopt(struct sock *sk, int level, int optname, | |||
| 944 | err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); | 944 | err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); |
| 945 | #ifdef CONFIG_NETFILTER | 945 | #ifdef CONFIG_NETFILTER |
| 946 | /* we need to exclude all possible EINVALs except default case */ | 946 | /* we need to exclude all possible EINVALs except default case */ |
| 947 | if (err == -ENOPROTOOPT && optname != IPV6_ADDRFORM && | 947 | if (err == -EINVAL && optname != IPV6_ADDRFORM && |
| 948 | optname != MCAST_MSFILTER) { | 948 | optname != MCAST_MSFILTER) { |
| 949 | int len; | 949 | int len; |
| 950 | 950 | ||
