[PATCH openEuler-5.10 241/427] net: stmmac: fix out-of-bounds access in a selftest