mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
sock: free skb in skb_complete_tx_timestamp on error
[ Upstream commit35b99dffc3] skb_complete_tx_timestamp must ingest the skb it is passed. Call kfree_skb if the skb cannot be enqueued. Fixes:b245be1f4d("net-timestamp: no-payload only sysctl") Fixes:9ac25fc063("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a746fadd5e
commit
58f6ebbd34
1 changed files with 5 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue