]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Like with r185713 make sure to not leak a lock as rtalloc1(9) returns
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 31 Jan 2009 10:48:02 +0000 (10:48 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 31 Jan 2009 10:48:02 +0000 (10:48 +0000)
commit2e730bea0af04061e1bcfd7f4d49b5ea0024be85
treedb9d96c3d46e2dd5b8ccaa93c6188a5c52063c79
parentbecc6306844fe114d46c5c653937aea93bb8dd91
Like with r185713 make sure to not leak a lock as rtalloc1(9) returns
a locked route. Thus we have to use RTFREE_LOCKED(9) to get it unlocked
and rtfree(9)d rather than just rtfree(9)d.

Since the PR was filed, new places with the same problem were added
with new code.  Also check that the rt is valid before freeing it
either way there.

PR: kern/129793
Submitted by: Dheeraj Reddy <dheeraj@ece.gatech.edu>
MFC after: 2 weeks
Committed from: Bugathon #6
sys/net/if_llatbl.c
sys/netinet6/in6.c
sys/netinet6/in6_gif.c
sys/netinet6/in6_ifattach.c
sys/netinet6/nd6_nbr.c