[PATCH 5.10 121/122] i40e: fix validation of VF state in get resources