soc: soc_ti_k3: fix revision array bounds checks
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 24 Mar 2023 07:44:29 +0000 (08:44 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:27 +0000 (15:31 -0400)
commit45981a9a3759eae8375c85927fb213e4cc14353d
tree002ab8b48e3ad681a1d46a335b5957eedc5d02fe
parentc1da6fdb5c239b432440721772d993e63cfdeb20
soc: soc_ti_k3: fix revision array bounds checks

If rev is equal to the array size, we'll access the array
one-past-the-end.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Bryan Brattlof <bb@ti.com>
drivers/soc/soc_ti_k3.c