android_kernel_motorola_sm6375/drivers/interconnect
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mike Tipton 388c90c577 interconnect: Treat xlate() returning NULL node as an error
[ Upstream commit ad2ab1297d0c80899125a842bb7a078abfe1e6ce ]

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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Georgi Djakov <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-01-08 11:29:45 +01:00
..
qcom
core.c interconnect: Treat xlate() returning NULL node as an error 2024-01-08 11:29:45 +01:00
internal.h interconnect: Add helpers for enabling/disabling a path 2023-08-30 16:27:13 +02:00
Kconfig
Makefile