Skip to content
Commit 4808d163 authored by AKASHI Takahiro's avatar AKASHI Takahiro Committed by Tom Rini
Browse files

firmware: scmi: correct a validity check against power domain id



A power domain id on sandbox should be in the range from zero to
ARRAY_SIZE(scmi_pwdom) - 1. Correct the validity check logic.

Addresses-Coverity-ID: 467401 ("Out-of-bounds write")
Addresses-Coverity-ID: 467405 ("Out-of-bounds read")
Signed-off-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
parent d2174dbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment