mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
net: hisilicon: hip04: 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-2-krzysztof.kozlowski@linaro.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
387c415200
commit
17555297db
|
|
@ -947,6 +947,7 @@ static int hip04_mac_probe(struct platform_device *pdev)
|
|||
priv->tx_coalesce_timer.function = tx_done;
|
||||
|
||||
priv->map = syscon_node_to_regmap(arg.np);
|
||||
of_node_put(arg.np);
|
||||
if (IS_ERR(priv->map)) {
|
||||
dev_warn(d, "no syscon hisilicon,hip04-ppe\n");
|
||||
ret = PTR_ERR(priv->map);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user