Skip to content

Commit

Permalink
replace tree internal RT_REMREF with KASSERT + explicit assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kmacy committed Jun 27, 2009
1 parent 37ae6c7 commit 706d75d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/net/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,9 @@ rtinit1(struct ifaddr *ifa, int cmd, int flags, int fibnum)
* We just wanted to add it..
* we don't actually need a reference.
*/
RT_REMREF(rt);
KASSERT(rt->rt_refcnt == 1,
("invalid refcnt %d", rt->rt_refcnt));
rt->rt_refcnt = 0;
}
RT_UNLOCK(rt);
}
Expand Down

0 comments on commit 706d75d

Please sign in to comment.