[PATCH 5.17 098/114] i40e: i40e_main: fix a missing check on list iterator