]> git.baikalelectronics.ru Git - kernel.git/commit
sock: free skb in skb_complete_tx_timestamp on error
authorWillem de Bruijn <willemb@google.com>
Wed, 13 Dec 2017 19:41:06 +0000 (14:41 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 16:30:36 +0000 (11:30 -0500)
commit5fcb669b19dd13d3a5960fd56d1c8ce62ae93f25
tree200b606f78748bd6db248d625e848de6afdc3620
parentec207d15dc826da82634911800dd56ea734a453c
sock: free skb in skb_complete_tx_timestamp on error

skb_complete_tx_timestamp must ingest the skb it is passed. Call
kfree_skb if the skb cannot be enqueued.

Fixes: bf3cd3516bdd ("net-timestamp: no-payload only sysctl")
Fixes: a005048b41d9 ("net: fix socket refcounting in skb_complete_tx_timestamp()")
Reported-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c