Skip to content

Commit

Permalink
net: fec: add missing of_node_put() in fec_enet_init_stop_mode()
Browse files Browse the repository at this point in the history
[ Upstream commit d2b52ec ]

Put device node in error path in fec_enet_init_stop_mode().

Fixes: 8a448bf ("net: ethernet: fec: move GPR register offset and bit into DT")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220426125231.375688-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Yang Yingliang authored and gregkh committed May 9, 2022
1 parent b9ba4f5 commit 66d9659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/fec_main.c
Expand Up @@ -3731,7 +3731,7 @@ static int fec_enet_init_stop_mode(struct fec_enet_private *fep,
ARRAY_SIZE(out_val));
if (ret) {
dev_dbg(&fep->pdev->dev, "no stop mode property\n");
return ret;
goto out;
}

fep->stop_gpr.gpr = syscon_node_to_regmap(gpr_np);
Expand Down

0 comments on commit 66d9659

Please sign in to comment.