Le maanantaina 13. heinäkuuta 2026, 10.52.12 Itä-Euroopan kesäaika Minhong He
a écrit :
phonet_device_init() registers a netdevice notifier before calling
phonet_netlink_register(), but does not check whether notifier
registration succeeded. On failure, netlink setup still proceeds and
init may return success without the notifier in place.
Check the notifier registration error and unwind through
phonet_device_exit() on failure.
That will unregister a notifier that is not registered. While I believe that
would fail safe, I am not sure if that is really considered proper by
contemporary kernel coding standards.
--
Rémi Denis-Courmont
https://www.remlab.net/