Re: [PATCH v3] platform/x86/amd/pmc: Fix RTC reference leak in amd_pmc_verify_czn_rtc()

From: Alexandre Belloni

Date: Mon Oct 19 2026 - 16:12:33 EST


On Sun, 11 Oct 2026 20:17:58 +0800, Ma Ke wrote:
> amd_pmc_verify_czn_rtc() opens the RTC with rtc_class_open(), which
> takes both a device reference and a module reference on the RTC
> driver. The matching release is rtc_class_close(), and it is never
> called. Every return path after the device has been opened, the ones
> that return 0 as well as the ones that report an error, leaves both
> references behind, so each S0i3 suspend leaks them.
>
> [...]

Applied, thanks!

[1/1] platform/x86/amd/pmc: Fix RTC reference leak in amd_pmc_verify_czn_rtc()
https://git.kernel.org/abelloni/c/22b9306f1fcf

Best regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com