c78eaeebe8
In case of netdev registration failure the code path will
jump to init_fail label:
init_fail:
netdev_err(ndev, "init failed\n");
moxart_mac_free_memory(ndev);
irq_map_fail:
free_netdev(ndev);
return ret;
So, there is no need to call free_netdev() before jumping
to error handling path, since it can cause UAF or double-free
bug.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
moxart_ether.c | ||
moxart_ether.h |