net: hisilicon: hns_mdio: fix OF node leak in probe()
Driver is leaking OF node reference from of_parse_phandle_with_fixed_args() in probe(). Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240827144421.52852-4-krzysztof.kozlowski@linaro.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5680cf8d34
commit
e62beddc45
@ -575,6 +575,7 @@ static int hns_mdio_probe(struct platform_device *pdev)
|
||||
MDIO_SC_RESET_ST;
|
||||
}
|
||||
}
|
||||
of_node_put(reg_args.np);
|
||||
} else {
|
||||
dev_warn(&pdev->dev, "find syscon ret = %#x\n", ret);
|
||||
mdio_dev->subctrl_vbase = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user