[PATCH openEuler-5.10-LTS 426/559] net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator