[PATCH 5.5 028/151] net: systemport: fix index check to avoid an array out of bounds access