On Wed, Apr 23, 2025, at 10:22, Dan Carpenter wrote: > The "port_id" is used as an array index into the struct fpc202_priv > priv->addr_caches[] array in fpc202_write_dev_addr(). It's a 2 by 2 > array so if "port_id" is FPC202_NUM_PORTS (2) then it's one element > out of bounds. Change the > to >= to fix this bug. > > Fixes: 1e5c9b1efa1c ("misc: add FPC202 dual port controller driver") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- Acked-by: Arnd Bergmann <arnd@xxxxxxxx>