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