Skip to content
Commit e6393818 authored by Colin Ian King's avatar Colin Ian King Committed by Bjorn Andersson
Browse files

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: 734c78e7

 ("soc: qcom: socinfo: add info from PMIC models array")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210118113651.71955-1-colin.king@canonical.com
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 3bc4bf77
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment