Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: ethernet: mtk_eth_soc: fix resource leak in error path
In mtk_probe(), when mtk_ppe_init() or mtk_eth_offload_init() failed, mtk_mdio_cleanup() isn't called. Fix it. Fixes: ba37b7c ("net: ethernet: mtk_eth_soc: add support for initializing the PPE") Fixes: 502e84e ("net: ethernet: mtk_eth_soc: add flow offloading support") Signed-off-by: Yan Cangang <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
- Loading branch information