Commit 58f6032
net: ethernet: mvneta: Fix error handling in mvneta_probe
When mvneta_port_power_up() fails, we should execute
cleanup functions after label err_netdev to avoid memleak.
Fixes: 41c2b6b ("net: ethernet: mvneta: Add back interface mode validation")
Signed-off-by: Dinghao Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent a0c8be5 commit 58f6032
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5255 | 5255 | | |
5256 | 5256 | | |
5257 | 5257 | | |
5258 | | - | |
| 5258 | + | |
5259 | 5259 | | |
5260 | 5260 | | |
5261 | 5261 | | |
| |||
0 commit comments