[PATCH v2] soc: xilinx: versal: fix out of bounds array access