Skip to content

Commit 5d97859

Browse files
committed
Merge tag 'ata-6.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux
Pull ata fix from Damien Le Moal: - Fix an OF node reference leak in the sata_highbank driver * tag 'ata-6.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux: ata: sata_highbank: fix OF node reference leak in highbank_initialize_phys()
2 parents a446e96 + 676fe1f commit 5d97859

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ata/sata_highbank.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ static int highbank_initialize_phys(struct device *dev, void __iomem *addr)
348348
phy_nodes[phy] = phy_data.np;
349349
cphy_base[phy] = of_iomap(phy_nodes[phy], 0);
350350
if (cphy_base[phy] == NULL) {
351+
of_node_put(phy_data.np);
351352
return 0;
352353
}
353354
phy_count += 1;

0 commit comments

Comments
 (0)