linux-stable/drivers/interconnect
Mike Tipton 505df1c0ab interconnect: Treat xlate() returning NULL node as an error
[ Upstream commit ad2ab1297d ]

Currently, if provider->xlate() or provider->xlate_extended()
"successfully" return a NULL node, then of_icc_get_from_provider() won't
consider that an error and will successfully return the NULL node. This
bypasses error handling in of_icc_get_by_index() and leads to NULL
dereferences in path_find().

This could be avoided by ensuring provider callbacks always return an
error for NULL nodes, but it's better to explicitly protect against this
in the common framework.

Fixes: 87e3031b6f ("interconnect: Allow endpoints translation via DT")
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com>
Link: https://lore.kernel.org/r/20231025145829.11603-1-quic_mdtipton@quicinc.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-05 15:12:26 +01:00
..
imx interconnect: imx: fix max_node_id 2022-08-21 15:16:00 +02:00
qcom interconnect: qcom: Add support for mask-based BCMs 2023-11-28 16:55:02 +00:00
bulk.c
core.c interconnect: Treat xlate() returning NULL node as an error 2024-01-05 15:12:26 +01:00
internal.h
Kconfig
Makefile
trace.h