The error handling flow during probing has some shortcomings. 1. In case an error occurs after netif_napi_add() this must be cleaned up with a call to netif_napi_del(). 2. If devm_register_netdev() fails not only NAPI must be cleaned up but also the phylink. Add a cleanup section for the probe. Implement it generically (checking for 0/NULL values) so it can be called any time when encountering probe failures. Link: https://github.com/openwrt/openwrt/pull/23483 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> |
||
|---|---|---|
| .. | ||
| imagebuilder | ||
| linux | ||
| llvm-bpf | ||
| sdk | ||
| toolchain | ||
| Config.in | ||
| Makefile | ||