Message ID | bbccd685a486a53501bdc75403f3be7fd5260b5e.1717105215.git.yan@cloudflare.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: pass receive socket to drop tracepoint | expand |
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 823306487a82..e2f9866f67c7 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -946,7 +946,7 @@ static enum skb_drop_reason __ping_queue_rcv_skb(struct sock *sk, pr_debug("ping_queue_rcv_skb(sk=%p,sk->num=%d,skb=%p)\n", inet_sk(sk), inet_sk(sk)->inet_num, skb); if (sock_queue_rcv_skb_reason(sk, skb, &reason) < 0) { - kfree_skb_reason(skb, reason); + kfree_skb_for_sk(skb, sk, reason); pr_debug("ping_queue_rcv_skb -> failed\n"); return reason; }
Use kfree_skb_for_sk call to pass on the rx socket Signed-off-by: Yan Zhai <yan@cloudflare.com> --- net/ipv4/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)