[PATCH 6.8 126/273] octeontx2-af: Add array index check