[PATCH 5.4 025/123] net: systemport: fix index check to avoid an array out of bounds access