Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d48c6464 authored by Fugang Duan's avatar Fugang Duan Committed by Greg Kroah-Hartman
Browse files

net: fec: free/restore resource in related probe error pathes




[ Upstream commit d1616f07 ]

Fixes in probe error path:
- Restore dev_id before failed_ioremap path.
  Fixes: ("net: fec: restore dev_id in the cases of probe error")
- Call of_node_put(phy_node) before failed_phy path.
  Fixes: ("net: fec: Support phys probed from devicetree and fixed-link")

Signed-off-by: default avatarFugang Duan <fugang.duan@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e7e73b10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment