summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_outputfl.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-02 01:47:56 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-02 01:47:56 +0000
commit6bfe519bf0d785388af7342b991f57aba1332cca (patch)
treeec274f812a1e5634476f4c7c8471dd44c601b760 /sys/netipx/ipx_outputfl.c
parent0eefe3ee3fc5743f1eb6b0390ffaec5cfdf40f15 (diff)
downloadFreeBSD-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_outputfl.c')
-rw-r--r--sys/netipx/ipx_outputfl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/ipx_outputfl.c b/sys/netipx/ipx_outputfl.c
index c2585dc..630f792 100644
--- a/sys/netipx/ipx_outputfl.c
+++ b/sys/netipx/ipx_outputfl.c
@@ -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);
}
OpenPOWER on IntegriCloud