summaryrefslogtreecommitdiff
path: root/include/linux/tc_act/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorConor Dooley <conor.dooley@microchip.com>2026-02-24 09:35:25 +0000
committerConor Dooley <conor.dooley@microchip.com>2026-03-02 17:12:45 +0000
commit2f7ae8ab6aa73daaf080d5332110357c29df9c36 (patch)
treeeab889b42cd9c2d4c92145f00b9a83e4b808f3f7 /include/linux/tc_act/git@git.tavy.me:linux-stable.git
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f (diff)
clk: microchip: mpfs-ccc: fix out of bounds access during output registration
UBSAN reported an out of bounds access during registration of the last two outputs. This out of bounds access occurs because space is only allocated in the hws array for two PLLs and the four output dividers that each has, but the defined IDs contain two DLLS and their two outputs each, which are not supported by the driver. The ID order is PLLs -> DLLs -> PLL outputs -> DLL outputs. Decrement the PLL output IDs by two while adding them to the array to avoid the problem. Fixes: d39fb172760e ("clk: microchip: add PolarFire SoC fabric clock support") CC: stable@vger.kernel.org Reviewed-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'include/linux/tc_act/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions