Use RTFREE() to free route references rather than rtfree(), as rtfree()

expects a locked route reference.  This removes a panic that occurs
when connected ipxpcb is closed and its route free'd, and may have been
present since the route locking took place.

MFC after:	2 weeks
This commit is contained in:
rwatson 2005-01-02 01:47:56 +00:00
parent 0eefe3ee3f
commit 6bfe519bf0
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ ipx_outputfl(m0, ro, flags)
/*
* The old route has gone away; try for a new one.
*/
rtfree(ro->ro_rt);
RTFREE(ro->ro_rt);
ro->ro_rt = NULL;
rtalloc_ign(ro, 0);
}

View File

@ -275,7 +275,7 @@ ipx_pcbdetach(ipxp)
so->so_pcb = 0;
sotryfree(so);
if (ipxp->ipxp_route.ro_rt != NULL)
rtfree(ipxp->ipxp_route.ro_rt);
RTFREE(ipxp->ipxp_route.ro_rt);
LIST_REMOVE(ipxp, ipxp_list);
FREE(ipxp, M_PCB);
}