[PATCH 5.17 432/772] net: stmmac: fix out-of-bounds access in a selftest