diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 95738aa0d8a6..f8ad397e285e 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -705,7 +705,8 @@ static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb) | |||
705 | */ | 705 | */ |
706 | if (sk) { | 706 | if (sk) { |
707 | arg.bound_dev_if = sk->sk_bound_dev_if; | 707 | arg.bound_dev_if = sk->sk_bound_dev_if; |
708 | trace_tcp_send_reset(sk, skb); | 708 | if (sk_fullsock(sk)) |
709 | trace_tcp_send_reset(sk, skb); | ||
709 | } | 710 | } |
710 | 711 | ||
711 | BUILD_BUG_ON(offsetof(struct sock, sk_bound_dev_if) != | 712 | BUILD_BUG_ON(offsetof(struct sock, sk_bound_dev_if) != |