Skip to content

Commit

Permalink
Make witness happy: destroy rte lock before free.
Browse files Browse the repository at this point in the history
MFC after:	2 weeks
  • Loading branch information
AlexanderChernikov committed Nov 16, 2014
1 parent fd6ff34 commit 56eff7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ rtfree(struct rtentry *rt)
/*
* and the rtentry itself of course
*/
RT_LOCK_DESTROY(rt);
uma_zfree(V_rtzone, rt);
return;
}
Expand Down

0 comments on commit 56eff7e

Please sign in to comment.