Skip to content

Commit bd2b639

Browse files
juhosgandersson
authored andcommitted
clk: qcom: gcc-ipq9574: fix terminating of frequency table arrays
The frequency table arrays are supposed to be terminated with an empty element. Add such entry to the end of the arrays where it is missing in order to avoid possible out-of-bound access when the table is traversed by functions like qcom_find_freq() or qcom_find_freq_floor(). Only compile tested. Fixes: d75b82c ("clk: qcom: Add Global Clock Controller driver for IPQ9574") Signed-off-by: Gabor Juhos <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 1040ef5 commit bd2b639

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/qcom/gcc-ipq9574.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,6 +2082,7 @@ static struct clk_branch gcc_sdcc1_apps_clk = {
20822082
static const struct freq_tbl ftbl_sdcc_ice_core_clk_src[] = {
20832083
F(150000000, P_GPLL4, 8, 0, 0),
20842084
F(300000000, P_GPLL4, 4, 0, 0),
2085+
{ }
20852086
};
20862087

20872088
static struct clk_rcg2 sdcc1_ice_core_clk_src = {

0 commit comments

Comments
 (0)