Re: [PATCH] ata: libahci_platform: Fix device reference leak in ahci_platform_get_resources()
From: Niklas Cassel
Date: Tue Sep 15 2026 - 05:56:02 EST
On Tue, 15 Sep 2026 06:59:33 +0000, Wentao Liang wrote:
> of_find_device_by_node() takes a reference on the port platform device,
> which is only used to look up its port regulator and is never released,
> neither on success nor on the error paths. Drop the reference with
> put_device() once the regulator has been obtained, which covers both the
> success and error paths.
>
>
> [...]
Applied to libata/linux.git (for-7.3-fixes), thanks!
[1/1] ata: libahci_platform: Fix device reference leak in ahci_platform_get_resources()
https://git.kernel.org/libata/linux/c/26ca58db
Kind regards,
Niklas