WSL2-Linux-Kernel/net/mctp
Jeremy Kerr c7caf669b8 net: mctp: purge receive queues on sk destruction
commit 60bd1d9008 upstream.

We may have pending skbs in the receive queue when the sk is being
destroyed; add a destructor to purge the queue.

MCTP doesn't use the error queue, so only the receive_queue is purged.

Fixes: 833ef3b91d ("mctp: Populate socket implementation")
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230126064551.464468-1-jk@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-06 07:59:02 +01:00
..
Kconfig mctp: Add MCTP base 2021-07-29 15:06:49 +01:00
Makefile mctp: Add neighbour implementation 2021-07-29 15:06:50 +01:00
af_mctp.c net: mctp: purge receive queues on sk destruction 2023-02-06 07:59:02 +01:00
device.c mctp: Allow per-netns default networks 2021-07-29 15:06:50 +01:00
neigh.c mctp: Add neighbour netlink interface 2021-07-29 15:06:50 +01:00
route.c net: mctp: mark socks as dead on unhash, prevent re-add 2023-02-01 08:27:28 +01:00