[PATCH 5.6 147/166] net: dsa: bcm_sf2: Fix overflow checks