From: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> commit 73580e2ee6adfb40276bd420da3bb1abae204e10 upstream. Driver is leaking an OF node reference obtained from of_parse_phandle_with_fixed_args(). Fixes: 43e112bb3dea ("rtc: at91sam9: make use of syscon/regmap to access GPBR registers") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> Link: https://lore.kernel.org/r/20240825183103.102904-1-krzysztof.kozlowski@xxxxxxxxxx Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-at91sam9.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/rtc/rtc-at91sam9.c +++ b/drivers/rtc/rtc-at91sam9.c @@ -370,6 +370,7 @@ static int at91_rtc_probe(struct platfor return ret; rtc->gpbr = syscon_node_to_regmap(args.np); + of_node_put(args.np); rtc->gpbr_offset = args.args[0]; if (IS_ERR(rtc->gpbr)) { dev_err(&pdev->dev, "failed to retrieve gpbr regmap, aborting.\n"); Patches currently in stable-queue which might be from krzysztof.kozlowski@xxxxxxxxxx are queue-5.4/power-supply-axp20x_battery-remove-design-from-min-a.patch queue-5.4/soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch queue-5.4/reset-berlin-fix-of-node-leak-in-probe-error-path.patch queue-5.4/rtc-at91sam9-fix-of-node-leak-in-probe-error-path.patch queue-5.4/power-supply-max17042_battery-fix-soc-threshold-calc.patch queue-5.4/firmware-tegra-bpmp-drop-unused-mbox_client_to_bpmp.patch queue-5.4/net-hisilicon-hns_dsaf_mac-fix-of-node-leak-in-hns_m.patch queue-5.4/soc-versatile-realview-fix-soc_dev-leak-during-devic.patch queue-5.4/soc-versatile-realview-fix-memory-leak-during-device.patch queue-5.4/net-hisilicon-hns_mdio-fix-of-node-leak-in-probe.patch queue-5.4/arm-versatile-fix-of-node-leak-in-cpus-prepare.patch queue-5.4/soundwire-stream-revert-soundwire-stream-fix-programming-slave-ports-for-non-continous-port-maps.patch queue-5.4/arm-dts-imx7d-zii-rmu2-fix-ethernet-phy-pinctrl-prop.patch queue-5.4/net-hisilicon-hip04-fix-of-node-leak-in-probe.patch