diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-15 06:59:33 +0000 |
|---|---|---|
| committer | Niklas Cassel <cassel@kernel.org> | 2026-09-16 07:22:53 +0200 |
| commit | 0d1cb83337f13af082afb68b28d3fdfe29cde7fb (patch) | |
| tree | aa73bf238c7e21a5dbf4a018373ee4890b979022 /kernel | |
| parent | 82e47533221d4746947b74d2e79a478c36c6433a (diff) | |
| download | linux-next-0d1cb83337f13af082afb68b28d3fdfe29cde7fb.tar.gz linux-next-0d1cb83337f13af082afb68b28d3fdfe29cde7fb.zip | |
ata: libahci_platform: Fix device reference leak in ahci_platform_get_resources()
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.
Fixes: c7d7ddee7e24 ("ata: libahci: Allow using multiple regulators")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20260915065933.1733061-1-vulab@iscas.ac.cn
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
