提交 5e2c21dc 编写于 作者: D Duan Jiong 提交者: David S. Miller

neigh: directly goto out after setting nud_state to NUD_FAILED

Because those following if conditions will not be matched.
Signed-off-by: NDuan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8e1f40ec
...@@ -945,6 +945,7 @@ static void neigh_timer_handler(unsigned long arg) ...@@ -945,6 +945,7 @@ static void neigh_timer_handler(unsigned long arg)
neigh->nud_state = NUD_FAILED; neigh->nud_state = NUD_FAILED;
notify = 1; notify = 1;
neigh_invalidate(neigh); neigh_invalidate(neigh);
goto out;
} }
if (neigh->nud_state & NUD_IN_TIMER) { if (neigh->nud_state & NUD_IN_TIMER) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册