瀏覽代碼

neigh: directly goto out after setting nud_state to NUD_FAILED

Because those following if conditions will not be matched.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Duan Jiong 11 年之前
父節點
當前提交
5e2c21dceb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/core/neighbour.c

+ 1 - 0
net/core/neighbour.c

@@ -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) {