]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: quirks: Add of_node_put() when breaking out of loop
authorLiang He <windhl@126.com>
Tue, 19 Jul 2022 09:10:51 +0000 (17:10 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 21 Jul 2022 16:02:41 +0000 (18:02 +0200)
commite758d4391edc97e5f408dc1b148fa5d248efffef
tree62ad28fb08ec5584f37cfb9b73139c505eb1dbf8
parent96b1f3077634e0b3d8a864779e414d83141ccbb0
mmc: core: quirks: Add of_node_put() when breaking out of loop

In mmc_fixup_of_compatible_match(), we should call of_node_put()
when breaking out of for_each_child_of_node() which will increase
and decrease the refcount during one iteration.

Fixes: 86b37b696979 ("mmc: core: allow to match the device tree to apply quirks")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220719091051.1210806-1-windhl@126.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/quirks.h