Skip to content
Snippets Groups Projects
Commit c9aff567 authored by Eric Dumazet's avatar Eric Dumazet Committed by Vineeta Srivastava
Browse files

ipv6: inet6_sk() should use sk_fullsock()


SYN_RECV & TIMEWAIT sockets are not full blown, they do not have a pinet6
pointer.

Bug: 24163529
Change-Id: I6ce67a190d67d200c6ebeb81d2daeb9c86cd7581
Fixes: ca6fb065 ("tcp: attach SYNACK messages to request sockets instead of listener")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarLorenzo Colitti <lorenzo@google.com>
parent 0c639027
Branches
Tags
No related merge requests found
...@@ -276,7 +276,7 @@ static inline struct inet6_timewait_sock *inet6_twsk(const struct sock *sk) ...@@ -276,7 +276,7 @@ static inline struct inet6_timewait_sock *inet6_twsk(const struct sock *sk)
#if IS_ENABLED(CONFIG_IPV6) #if IS_ENABLED(CONFIG_IPV6)
static inline struct ipv6_pinfo *inet6_sk(const struct sock *__sk) static inline struct ipv6_pinfo *inet6_sk(const struct sock *__sk)
{ {
return inet_sk(__sk)->pinet6; return sk_fullsock(__sk) ? inet_sk(__sk)->pinet6 : NULL;
} }
static inline struct inet6_request_sock * static inline struct inet6_request_sock *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment