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_outputfl.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_outputfl.c')
-rw-r--r-- | sys/netipx/ipx_outputfl.c | 2 |
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); } |