Commit 839994cd authored by Cristian Marussi's avatar Cristian Marussi Committed by Carlos Llamas
Browse files

FROMGIT: firmware: arm_scmi: Rework clock domain info lookups



Accessing clock domains descriptors by the index from the SCMI drivers
can potentially lead to out-of-bound violations if the SCMI drivers
misbehaves.

Use a common helper to check the consistency of such accesses.

Signed-off-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240110120916.2482603-1-cristian.marussi@arm.com


Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>

Bug: 339773531
(cherry picked from commit dea893a6
https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git

 for-linux-next)
Change-Id: I2d51685b1b4564510f9cdb9262ae3363684650db
Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
parent 6cbd5597
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment