Unlock rtentry before calling for epoch(9) destruction as the destruction

may happen immediately, leading to panic.

Reported by:	bdragon
This commit is contained in:
Alexander V. Chernikov 2020-05-28 07:23:27 +00:00
parent 9a47dfc308
commit cb86ca48bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361571

View File

@ -411,9 +411,9 @@ rtfree(struct rtentry *rt)
RT_LOCK_ASSERT(rt);
RT_UNLOCK(rt);
epoch_call(net_epoch_preempt, destroy_rtentry_epoch,
&rt->rt_epoch_ctx);
RT_UNLOCK(rt);
}
static void