rem: phyint_chstate(pi, PI_FAILED);
add: phyint_chstate(pi2, PI_FAILED);
context: phyint_inst_check_for_failure(struct phyint_instance *pii){	struct	phyint	*pi;	struct	phyint	*pi2;	pi = pii->pii_phyint;	switch (failure_state(pii)) {	case PHYINT_FAILURE:		(void) change_lif_flags(pi, IFF_FAILED, _B_TRUE);		if (pi->pi_group == phyint_anongroup) {			logerr("NIC failure detected on %s\n", pii->pii_name);		} else {			logerr("NIC failure detected on %s of group %s\n",			    pii->pii_name, pi->pi_group->pg_name);		}		/*		 * Do the failover, unless the interface is offline (in		 * which case we've already failed over).		 */		if (pi->pi_state != PI_OFFLINE) {			phyint_chstate(pi, PI_FAILED);			reset_crtt_all(pi);			if (!(pi->pi_flags & IFF_INACTIVE))				(void) try_failover(pi, FAILOVER_NORMAL);		}		break;	case GROUP_FAILURE:		logerr("All Interfaces in group %s have failed\n",		    pi->pi_group->pg_name);		for (pi2 = pi->pi_group->pg_phyint; pi2 != NULL;		    pi2 = pi2->pi_pgnext) {			if (pi2->pi_flags & IFF_OFFLINE)				continue;			(void) change_lif_flags(pi2, IFF_FAILED, _B_TRUE);			reset_crtt_all(pi2);			/*			 * In the case of host targets, we			 * would have flushed the targets,			 * and gone to PI_NOTARGETS state.			 */			if (pi2->pi_state == PI_RUNNING)				phyint_chstate(pi, PI_FAILED);			pi2->pi_empty = 0;			pi2->pi_full = 0;		}		break;	default:		break;	}}