diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-05-28 07:51:26 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-11-05 14:40:25 +0000 |
commit | 002be81140075e17a1ebd5c3c55e356fbab0ddad (patch) | |
tree | 4961af71f348afe4e10a5c0a6ee8832c2a9f9046 /drivers/mfd/timberdale.h | |
parent | ddb1ada416fd3db44642b3bfaee5fe5bb3304721 (diff) |
mfd: core: Add missing of_node_put for loop iteration
Early exits from for_each_child_of_node() should decrement the
node reference counter. Reported by Coccinelle:
drivers/mfd/mfd-core.c:197:2-24: WARNING:
Function "for_each_child_of_node" should have of_node_put() before goto around lines 209.
Fixes: c94bb233a9fe ("mfd: Make MFD core code Device Tree and IRQ domain aware")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210528115126.18370-1-krzysztof.kozlowski@canonical.com
Diffstat (limited to 'drivers/mfd/timberdale.h')
0 files changed, 0 insertions, 0 deletions