diff options
author | James Chapman <jchapman@katalix.com> | 2024-08-19 15:33:33 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-20 16:52:28 -0700 |
commit | bc3dd9ed04d69cba3bb603da06fa26d888233cff (patch) | |
tree | 9df1c1cf93fce3d2bbbabee9f33cf222520f3db2 /net/ipv4 | |
parent | 8594d9b85c07f05e431bd07e895c2a3ad9b85d6f (diff) | |
download | lwn-bc3dd9ed04d69cba3bb603da06fa26d888233cff.tar.gz lwn-bc3dd9ed04d69cba3bb603da06fa26d888233cff.zip |
l2tp: use skb_queue_purge in l2tp_ip_destroy_sock
Recent commit ed8ebee6def7 ("l2tp: have l2tp_ip_destroy_sock use
ip_flush_pending_frames") was incorrect in that l2tp_ip does not use
socket cork and ip_flush_pending_frames is for sockets that do. Use
__skb_queue_purge instead and remove the unnecessary lock.
Also unexport ip_flush_pending_frames since it was originally exported
in commit 4ff8863419cd ("ipv4: export ip_flush_pending_frames") for
l2tp and is not used by other modules.
Suggested-by: xiyou.wangcong@gmail.com
Signed-off-by: James Chapman <jchapman@katalix.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20240819143333.3204957-1-jchapman@katalix.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_output.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 8a10a7c67834..b90d0f78ac80 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -1534,7 +1534,6 @@ void ip_flush_pending_frames(struct sock *sk) { __ip_flush_pending_frames(sk, &sk->sk_write_queue, &inet_sk(sk)->cork.base); } -EXPORT_SYMBOL_GPL(ip_flush_pending_frames); struct sk_buff *ip_make_skb(struct sock *sk, struct flowi4 *fl4, |