[PATCH openEuler-5.10-LTS 54/66] i40e: i40e_main: fix a missing check on list iterator