]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Fix compat_getsockopt
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 8 Mar 2007 02:42:52 +0000 (18:42 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 13 Mar 2007 18:26:46 +0000 (11:26 -0700)
[NET]: Fix compat_sock_common_getsockopt typo.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/sock.c

index 0ed5b4f0bc407aef5b376149dcc2d49aa3c49937..b69192be0457b1fc55a852cf342c6592d8a9cb0a 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);