rtfree() must be called in lock context.
Reported by: jhay
This commit is contained in:
parent
91a50fa4a5
commit
2d0e1cf17a
@ -1894,6 +1894,7 @@ nd6_output(ifp, origifp, m0, dst, rt0)
|
||||
if (rt->rt_gwroute == 0)
|
||||
goto lookup;
|
||||
if (((rt = rt->rt_gwroute)->rt_flags & RTF_UP) == 0) {
|
||||
RT_LOCK(rt);
|
||||
rtfree(rt); rt = rt0;
|
||||
lookup:
|
||||
rt->rt_gwroute = rtalloc1(rt->rt_gateway, 1, 0UL);
|
||||
|
Loading…
Reference in New Issue
Block a user