[PATCH 4.19 17/89] net: systemport: fix index check to avoid an array out of bounds access