diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 9f6b44ca28a8..9a01bb81f8bf 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c | |||
@@ -672,7 +672,7 @@ EXPORT_SYMBOL_GPL(inet_csk_ctl_sock_create); | |||
672 | int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname, | 672 | int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname, |
673 | char __user *optval, int __user *optlen) | 673 | char __user *optval, int __user *optlen) |
674 | { | 674 | { |
675 | const struct inet_csk *icsk = inet_csk(sk); | 675 | const struct inet_connection_sock *icsk = inet_csk(sk); |
676 | 676 | ||
677 | if (icsk->icsk_af_ops->compat_getsockopt != NULL) | 677 | if (icsk->icsk_af_ops->compat_getsockopt != NULL) |
678 | return icsk->icsk_af_ops->compat_getsockopt(sk, level, optname, | 678 | return icsk->icsk_af_ops->compat_getsockopt(sk, level, optname, |
@@ -686,7 +686,7 @@ EXPORT_SYMBOL_GPL(inet_csk_compat_getsockopt); | |||
686 | int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, | 686 | int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, |
687 | char __user *optval, int optlen) | 687 | char __user *optval, int optlen) |
688 | { | 688 | { |
689 | const struct inet_csk *icsk = inet_csk(sk); | 689 | const struct inet_connection_sock *icsk = inet_csk(sk); |
690 | 690 | ||
691 | if (icsk->icsk_af_ops->compat_setsockopt != NULL) | 691 | if (icsk->icsk_af_ops->compat_setsockopt != NULL) |
692 | return icsk->icsk_af_ops->compat_setsockopt(sk, level, optname, | 692 | return icsk->icsk_af_ops->compat_setsockopt(sk, level, optname, |