diff options
author | Colin Ian King <[email protected]> | 2021-01-18 11:36:51 +0000 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2021-01-20 19:54:05 -0600 |
commit | e6393818c8d13cb602af4850bcef47ead1455bbf (patch) | |
tree | 47339036a656d0caf8da58afe2fd116c7582d810 /net/unix/unix_bpf.c | |
parent | 3bc4bf77fa2adca8d6677461b6ec57505f1a3331 (diff) |
soc: qcom: socinfo: Fix off-by-one array index bounds check
There is an off-by-one array index bounds check on array
pmic_models. Fix this by checking using < rather than <= on
the array size.
Addresses-Coverity: ("Out-of-bounds read")
Fixes: 734c78e7febf ("soc: qcom: socinfo: add info from PMIC models array")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions