提交 2087eac2 编写于 作者: Y Ye Li 提交者: Joe Hershberger

net: fec: Fix issue in DM probe timeout

Since the probe function has changed to reset FEC controller prior than
setup PHY. If reset FEC controller timeout, the priv->phydev is not
initialized, so can't free it.
Signed-off-by: NYe Li <ye.li@nxp.com>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 979e0fc8
......@@ -1292,12 +1292,11 @@ static int fecmxc_probe(struct udevice *dev)
return 0;
err_timeout:
free(priv->phydev);
err_phy:
mdio_unregister(bus);
free(bus);
err_mii:
err_timeout:
fec_free_descs(priv);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册