|
@@ -264,9 +264,9 @@ struct tcp6_timewait_sock {
|
|
};
|
|
};
|
|
|
|
|
|
#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 raw6_sock *raw6_sk(const struct sock *sk)
|
|
static inline struct raw6_sock *raw6_sk(const struct sock *sk)
|