diff options
author | 2021-05-22 20:02:46 +0800 | |
---|---|---|
committer | 2021-05-23 16:16:24 -0700 | |
commit | 52af13a41489d7bbc1932d17583eff6e5fffc820 (patch) | |
tree | 18af83356daef4871af6575d4198622e12da2d8d /drivers/net/ethernet/faraday/ftgmac100.h | |
parent | dpaa2-eth: don't print error from dpaa2_mac_connect if that's EPROBE_DEFER (diff) | |
download | linux-52af13a41489d7bbc1932d17583eff6e5fffc820.tar.gz linux-52af13a41489d7bbc1932d17583eff6e5fffc820.tar.bz2 linux-52af13a41489d7bbc1932d17583eff6e5fffc820.zip |
net: ftgmac100: add missing error return code in ftgmac100_probe()
The variables will be free on path err_phy_connect, it should
return error code, or it will cause double free when calling
ftgmac100_remove().
Fixes: bd466c3fb5a4 ("net/faraday: Support NCSI mode")
Fixes: 39bfab8844a0 ("net: ftgmac100: Add support for DT phy-handle property")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday/ftgmac100.h')
0 files changed, 0 insertions, 0 deletions