]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
l2tp: have l2tp_ip_destroy_sock use ip_flush_pending_frames
authorJames Chapman <jchapman@katalix.com>
Mon, 29 Jul 2024 15:38:02 +0000 (16:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2024 08:25:12 +0000 (09:25 +0100)
commited8ebee6def7b7b760bd4fd90c03b9e86622701c
treed814a5d497060b0ed1c6faf14e9390e4e59709c8
parent4ff8863419cdc40f2c6e1ad99436e375b9b86b68
l2tp: have l2tp_ip_destroy_sock use ip_flush_pending_frames

Use the recently exported ip_flush_pending_frames instead of a
free-coded version and lock the socket while we call it.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip.c