diff options
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 4667d4d7c16..f2913ae2b52 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -2992,7 +2992,11 @@ void skb_tstamp_tx(struct sk_buff *orig_skb, | |||
2992 | memset(serr, 0, sizeof(*serr)); | 2992 | memset(serr, 0, sizeof(*serr)); |
2993 | serr->ee.ee_errno = ENOMSG; | 2993 | serr->ee.ee_errno = ENOMSG; |
2994 | serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING; | 2994 | serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING; |
2995 | |||
2996 | bh_lock_sock(sk); | ||
2995 | err = sock_queue_err_skb(sk, skb); | 2997 | err = sock_queue_err_skb(sk, skb); |
2998 | bh_unlock_sock(sk); | ||
2999 | |||
2996 | if (err) | 3000 | if (err) |
2997 | kfree_skb(skb); | 3001 | kfree_skb(skb); |
2998 | } | 3002 | } |