3cbae23d48
[ 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:
|
||
---|---|---|
.. | ||
imx | ||
qcom | ||
samsung | ||
Kconfig | ||
Makefile | ||
bulk.c | ||
core.c | ||
internal.h | ||
trace.h |