Hello Wentao Liang.
On Tue, 03 Nov 2026 10:28:54 +0000, Wentao Liang wrote:
> fakelb_init_module() registers a platform device and then registers the
> platform driver, returning the result of the latter directly. If driver
> registration fails, module initialization fails and the module exit
> function is never run, so the platform device is never unregistered and
> leaks.
>
> Check the result of platform_driver_register() and unregister the device
> on failure. Also check the device registration result, which can be an
> ERR_PTR, before using the stored pointer.
>
> [...]
Applied to wpan/wpan.git, thanks!
[1/1] ieee802154: fakelb: release platform device if driver registration fails
https://git.kernel.org/wpan/wpan/c/c113890c5450
regards,
Stefan Schmidt