]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: sata_highbank: fix OF node reference leak in highbank_initialize_phys()
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Thu, 5 Dec 2024 10:30:14 +0000 (19:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:07:17 +0000 (18:07 +0100)
commit11cbaff06356ded12bc161f7535fdd48f887deb6
treee396b9920acbbfe43179a85c4c65a2c90a7f5ad8
parente75054ff9cabb8e071ec61aed52cce426c80a31e
ata: sata_highbank: fix OF node reference leak in highbank_initialize_phys()

commit 676fe1f6f74db988191dab5df3bf256908177072 upstream.

The OF node reference obtained by of_parse_phandle_with_args() is not
released on early return. Add a of_node_put() call before returning.

Fixes: 8996b89d6bc9 ("ata: add platform driver for Calxeda AHCI controller")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/sata_highbank.c