linux_kernel/drivers/interconnect
Marek Szyprowski 017496af28 interconnect: fix memory trashing in of_count_icc_providers()
of_count_icc_providers() function uses for_each_available_child_of_node()
helper to recursively check all the available nodes. This helper already
properly handles child nodes' reference count, so there is no need to do
it explicitly. Remove the excessive call to of_node_put(). This fixes
memory trashing when CONFIG_OF_DYNAMIC is enabled (for example
arm/multi_v7_defconfig).

Fixes: b1d681d8d3 ("interconnect: Add sync state support")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20201119103746.32564-1-m.szyprowski@samsung.com
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
2020-11-20 16:01:35 +02:00
..
imx interconnect: imx: simplify the return expression of imx_icc_unregister 2020-09-21 11:15:02 +03:00
qcom interconnect: qcom: qcs404: Remove GPU and display RPM IDs 2020-11-20 15:52:05 +02:00
bulk.c interconnect: Add bulk API helpers 2020-09-08 16:28:49 +03:00
core.c interconnect: fix memory trashing in of_count_icc_providers() 2020-11-20 16:01:35 +02:00
internal.h interconnect: Add helpers for enabling/disabling a path 2020-05-10 18:30:37 +03:00
Kconfig Merge branch 'icc-get-by-index' into icc-next 2020-05-15 10:46:18 +03:00
Makefile interconnect: Add bulk API helpers 2020-09-08 16:28:49 +03:00
trace.h interconnect: Add basic tracepoints 2019-12-16 09:25:23 +02:00