Re: [PATCH] ata: libahci_platform: Fix device reference leak in ahci_platform_get_resources()

From: Niklas Cassel

Date: Wed Sep 16 2026 - 01:31:14 EST


On Tue, Sep 15, 2026 at 11:22:11AM +0200, Niklas Cassel wrote:
> 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

Wentao,

Since your commit was top of tree, I took the liberty to amend your commit
to address Damien's review comment and to pick up his R-b tag, new SHA1:

https://git.kernel.org/libata/linux/c/0d1cb833


Kind regards,
Niklas