1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

workaround LOR in rt_setgate

Reviewed by:	andre
Approved by:	re (rwatson)
This commit is contained in:
Sam Leffler 2003-11-25 19:52:12 +00:00
parent c4f6ec8989
commit 72b9c8c9fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122986

View File

@ -1111,8 +1111,10 @@ rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate)
arg.rnh = rnh;
arg.rt0 = rt;
/* XXX LOR here */
/* XXX workaround LOR */
RT_UNLOCK(rt);
RADIX_NODE_HEAD_LOCK(rnh);
RT_LOCK(rt);
rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt),
rt_fixchange, &arg);
RADIX_NODE_HEAD_UNLOCK(rnh);