[PATCH 4.19 55/64] net: dsa: bcm_sf2: Fix overflow checks