diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index e9986acdd0ab..8d65d6478dcd 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -1597,7 +1597,7 @@ int compat_sock_common_getsockopt(struct socket *sock, int level, int optname, | |||
1597 | { | 1597 | { |
1598 | struct sock *sk = sock->sk; | 1598 | struct sock *sk = sock->sk; |
1599 | 1599 | ||
1600 | if (sk->sk_prot->compat_setsockopt != NULL) | 1600 | if (sk->sk_prot->compat_getsockopt != NULL) |
1601 | return sk->sk_prot->compat_getsockopt(sk, level, optname, | 1601 | return sk->sk_prot->compat_getsockopt(sk, level, optname, |
1602 | optval, optlen); | 1602 | optval, optlen); |
1603 | return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); | 1603 | return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); |