Skip to content
Commit 58f60329 authored by Dinghao Liu's avatar Dinghao Liu Committed by Jakub Kicinski
Browse files

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: 41c2b6b4

 ("net: ethernet: mvneta: Add back interface mode validation")
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20201220082930.21623-1-dinghao.liu@zju.edu.cn
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a0c8be56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment