mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-09 00:59:55 +00:00
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:
|
||
|---|---|---|
| .. | ||
| test | ||
| af_mctp.c | ||
| device.c | ||
| Kconfig | ||
| Makefile | ||
| neigh.c | ||
| route.c | ||