Repository navigation
Commit af021fa
PCI: tegra: Fix OF node reference leak
[ Upstream commit eff21f5 ]
Commit 9e38e69 ("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.
Link: https://lore.kernel.org/r/55b11e9a7fa2987fbc0869d68ae59888954d65e2.1620148539.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 3f38238 commit af021fa
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2160 | 2160 | | |
2161 | 2161 | | |
2162 | 2162 | | |
2163 | | - | |
2164 | | - | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
2165 | 2167 | | |
2166 | 2168 | | |
2167 | 2169 | | |
2168 | | - | |
2169 | | - | |
| 2170 | + | |
| 2171 | + | |
2170 | 2172 | | |
2171 | 2173 | | |
2172 | 2174 | | |
| |||
2184 | 2186 | | |
2185 | 2187 | | |
2186 | 2188 | | |
2187 | | - | |
| 2189 | + | |
| 2190 | + | |
2188 | 2191 | | |
2189 | 2192 | | |
2190 | 2193 | | |
| |||
0 commit comments