Re: [PATCH 1/3] PCI: tegra: Fix OF node reference leak

From
Lorenzo Pieralisi <hidden>
Date
2021-08-05 10:43:26
Also in
kernel-janitors, linux-pci, lkml
Reply to
Christophe JAILLET, 2021-05-04
On Tue, 4 May 2021 19:17:42 +0200, Christophe JAILLET wrote:
Commit 9e38e690ace3 ("PCI: tegra: Fix OF node reference leak") has fixed
some node reference leaks in this function but missed some of them.

In fact, having 'port' referenced in the 'rp' structure is not enough to
prevent the leak, until 'rp' is actually added in the 'pcie->ports' list.

Add the missing 'goto err_node_put' accordingly.
Applied to pci/tegra, thanks!

[1/3] PCI: tegra: Fix OF node reference leak
      https://git.kernel.org/lpieralisi/pci/c/eff21f5da3
[2/3] PCI: tegra: Use 'seq_puts' instead of 'seq_printf'
      https://git.kernel.org/lpieralisi/pci/c/804b2b6f2a
[3/3] PCI: tegra: make const array err_msg static
      https://git.kernel.org/lpieralisi/pci/c/fd44e8efcc

Thanks,
Lorenzo
Thread (11 messages) 11 messages, 4 authors, last reply 2021-08-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help