[PATCH 5.15 148/151] i40e: fix validation of VF state in get resources