[PATCH 5.17 120/225] net: lan966x: fix a couple off by one bugs