]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: at91sam9: fix OF node leak in probe() error path
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 Aug 2024 18:31:03 +0000 (20:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:04:05 +0000 (12:04 +0200)
commitfe613753802c0c6e39399ddec0d093dcb8b3098b
treea0b35f08dbff0436cb4c5fcaa544c4e485b4c9ee
parent837d9df9c0792902710149d1a5e0991520af0f93
rtc: at91sam9: fix OF node leak in probe() error path

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@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240825183103.102904-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-at91sam9.c