Re: [PATCH] soc: soc_ti_k3: fix revision array bounds checks

2023-04-26 Thread Tom Rini
On Fri, Mar 24, 2023 at 08:44:29AM +0100, Rasmus Villemoes wrote: > If rev is equal to the array size, we'll access the array > one-past-the-end. > > Signed-off-by: Rasmus Villemoes > Reviewed-by: Bryan Brattlof Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signat

Re: [PATCH] soc: soc_ti_k3: fix revision array bounds checks

2023-03-27 Thread Bryan Brattlof
Hi Rasmus! On March 24, 2023 thus sayeth Rasmus Villemoes: > If rev is equal to the array size, we'll access the array > one-past-the-end. > > Signed-off-by: Rasmus Villemoes > --- > drivers/soc/soc_ti_k3.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Oops! good catch! Revie

[PATCH] soc: soc_ti_k3: fix revision array bounds checks

2023-03-24 Thread Rasmus Villemoes
If rev is equal to the array size, we'll access the array one-past-the-end. Signed-off-by: Rasmus Villemoes --- drivers/soc/soc_ti_k3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index 8af0ac7051..2182532236 100644 --