diff options
author | Dan Carpenter <[email protected]> | 2021-01-20 12:57:55 +0300 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2021-01-20 19:54:10 -0600 |
commit | 5fb33d8960dc7abdabc6fe599a30c2c99b082ef6 (patch) | |
tree | c5a465a06c5dd2742bb5b593b50debbc57790574 /net/unix/unix_bpf.c | |
parent | e6393818c8d13cb602af4850bcef47ead1455bbf (diff) |
soc: qcom: socinfo: Fix an off by one in qcom_show_pmic_model()
These need to be < ARRAY_SIZE() instead of <= ARRAY_SIZE() to prevent
accessing one element beyond the end of the array.
Acked-by: Dmitry Baryshkov <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Fixes: e9247e2ce577 ("soc: qcom: socinfo: fix printing of pmic_model")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/YAf+o85Z9lgkq3Nw@mwanda
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions