]> git.hungrycats.org Git - linux/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)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 11 Sep 2024 22:33:33 +0000 (00:33 +0200)
commit73580e2ee6adfb40276bd420da3bb1abae204e10
tree4aa7cedb5b0526d61ea5a9d3c1b35fe6e8d37991
parent80bf13c07c07c43cc959b253305b64922cb20a92
rtc: at91sam9: fix OF node leak in probe() error path

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>
drivers/rtc/rtc-at91sam9.c