don't acquire lock recursively

This commit is contained in:
Kip Macy 2008-12-13 20:16:03 +00:00
parent 41c6def2d1
commit 979245af95
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186052

View File

@ -115,7 +115,7 @@ in_addroute(void *v_arg, void *n_arg, struct radix_node_head *head,
* ARP entry and delete it if so.
*/
rt2 = in_rtalloc1((struct sockaddr *)sin, 0,
RTF_CLONING, rt->rt_fibnum);
RTF_CLONING|RTF_RNH_LOCKED, rt->rt_fibnum);
if (rt2) {
if (rt2->rt_flags & RTF_LLINFO &&
rt2->rt_flags & RTF_HOST &&