[PATCH 5.15 365/667] net: stmmac: fix out-of-bounds access in a selftest