Liang He 71fdd63bfd mmc: cavium-thunderx: Add of_node_put() when breaking out of loop
[ Upstream commit 7ee480795e41db314f2c445c65ed854a5d6e8e32 ]

In thunder_mmc_probe(), we should call of_node_put() when breaking
out of for_each_child_of_node() which has increased and decreased
the refcount during each iteration.

Fixes: 166bac38c3c5 ("mmc: cavium: Add MMC PCI driver for ThunderX SOCs")
Signed-off-by: Liang He <windhl@126.com>
Acked-by: Robert Richter <rric@kernel.org>
Link: https://lore.kernel.org/r/20220719095216.1241601-2-windhl@126.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:57 +02:00
..
2021-02-08 13:00:31 +01:00
2021-02-15 10:43:23 +01:00
2021-10-19 12:57:11 +02:00
2021-12-14 10:57:06 +01:00
2021-08-24 10:15:30 +02:00
2022-08-17 14:23:50 +02:00
2021-02-08 13:00:31 +01:00
2021-02-08 13:00:31 +01:00