Re: [PATCH 2/7] clk: sunxi: Prevent out-of-bounds gate array access

2022-06-26 Thread Andre Przywara
On Mon, 9 May 2022 00:29:32 -0500 Samuel Holland wrote: > Because the gate arrays are not given explicit sizes, the arrays are > only as large as the highest-numbered gate described in the driver. > However, only a subset of the CCU clocks are needed by U-Boot. So there > are valid clock specifi

[PATCH 2/7] clk: sunxi: Prevent out-of-bounds gate array access

2022-05-08 Thread Samuel Holland
Because the gate arrays are not given explicit sizes, the arrays are only as large as the highest-numbered gate described in the driver. However, only a subset of the CCU clocks are needed by U-Boot. So there are valid clock specifiers with indexes greater than the size of the arrays. Referencing a