WSL2-Linux-Kernel/net/mctp
Matt Johnston b389a902dd mctp: Remove device type check at unregister
The unregister check could be incorrectly triggered if a netdev
changes its type after register. That is possible for a tun device
using TUNSETLINK ioctl, resulting in mctp unregister failing
and the netdev unregister waiting forever.

This was encountered by https://github.com/openthread/openthread/issues/8523

Neither check at register or unregister is required. They were added in
an attempt to track down mctp_ptr being set unexpectedly, which should
not happen in normal operation.

Fixes: 7b1871af75 ("mctp: Warn if pointer is set for a wrong dev type")
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20221215054933.2403401-1-matt@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-19 17:20:22 -08:00
..
test Networking changes for 5.19. 2022-05-25 12:22:58 -07:00
Kconfig
Makefile
af_mctp.c mctp: Fix an error handling path in mctp_init() 2022-11-09 19:26:08 -08:00
device.c mctp: Remove device type check at unregister 2022-12-19 17:20:22 -08:00
neigh.c mctp: replace mctp_address_ok with more fine-grained helpers 2022-02-18 21:24:28 -08:00
route.c mctp: Fix an error handling path in mctp_init() 2022-11-09 19:26:08 -08:00