[PATCH 5.10 248/452] net: stmmac: fix out-of-bounds access in a selftest