diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-01-02 01:47:56 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-01-02 01:47:56 +0000 |
commit | 6bfe519bf0d785388af7342b991f57aba1332cca (patch) | |
tree | ec274f812a1e5634476f4c7c8471dd44c601b760 /sys/netipx/ipx_pcb.c | |
parent | 0eefe3ee3fc5743f1eb6b0390ffaec5cfdf40f15 (diff) | |
download | FreeBSD-src-6bfe519bf0d785388af7342b991f57aba1332cca.zip FreeBSD-src-6bfe519bf0d785388af7342b991f57aba1332cca.tar.gz |
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
Diffstat (limited to 'sys/netipx/ipx_pcb.c')
-rw-r--r-- | sys/netipx/ipx_pcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/ipx_pcb.c b/sys/netipx/ipx_pcb.c index 663cfeb..dbbfa21 100644 --- a/sys/netipx/ipx_pcb.c +++ b/sys/netipx/ipx_pcb.c @@ -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); } |