diff options
author | Dan Carpenter <[email protected]> | 2024-09-30 10:51:31 +0300 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2024-10-05 22:22:42 -0500 |
commit | 78261cb08f06c93d362cab5c5034bf5899bc7552 (patch) | |
tree | af1df2d9ae710b684ff0072d489fe57fe8f9dd78 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 99b2186b2c82c39b083de65c4c9598bcc0fc288c (diff) |
soc: qcom: geni-se: fix array underflow in geni_se_clk_tbl_get()
This loop is supposed to break if the frequency returned from
clk_round_rate() is the same as on the previous iteration. However,
that check doesn't make sense on the first iteration through the loop.
It leads to reading before the start of these->clk_perf_tbl[] array.
Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions