From: Johannes Berg Date: Tue, 6 Mar 2007 21:44:06 +0000 (-0800) Subject: [NET]: Fix compat_sock_common_getsockopt typo. X-Git-Tag: v2.6.21-rc3~2^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e51f9513e6b021abcaefd7c76f9b5d682f83232;p=linux-2.6 [NET]: Fix compat_sock_common_getsockopt typo. This patch fixes a typo in compat_sock_common_getsockopt. Signed-off-by: Johannes Berg Acked-by: James Morris Signed-off-by: David S. Miller --- diff --git a/net/core/sock.c b/net/core/sock.c index e9986acdd0..8d65d6478d 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, { 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);