[PATCH 6.1 066/138] octeontx2-af: Add array index check