commit | 58f60329a6be35a5653edb3fd2023ccef9eb9943 | [log] [tgz] |
---|---|---|
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | Sun Dec 20 16:29:30 2020 +0800 |
committer | Jakub Kicinski <kuba@kernel.org> | Tue Dec 22 18:49:45 2020 -0800 |
tree | fe4a589341890581a659f6bfe22de837210f9adb | |
parent | a0c8be56affa7d5ffbdec24c992223be54db3b6e [diff] |
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: 41c2b6b4f0f80 ("net: ethernet: mvneta: Add back interface mode validation") Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Link: https://lore.kernel.org/r/20201220082930.21623-1-dinghao.liu@zju.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>