[NET]: Fix compat_sock_common_getsockopt typo.
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 6 Mar 2007 21:44:06 +0000 (13:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Mar 2007 21:44:06 +0000 (13:44 -0800)
This patch fixes a typo in compat_sock_common_getsockopt.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c

index e9986acdd0ab0920f5283801484619926907542f..8d65d6478dcde0dd52ff1c28958aa2e03ebf160f 100644 (file)
@@ -1597,7 +1597,7 @@ int compat_sock_common_getsockopt(struct socket *sock, int level, int optname,
 {
        struct sock *sk = sock->sk;
 
-       if (sk->sk_prot->compat_setsockopt != NULL)
+       if (sk->sk_prot->compat_getsockopt != NULL)
                return sk->sk_prot->compat_getsockopt(sk, level, optname,
                                                      optval, optlen);
        return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen);