Skip to contentSkip to conversation

neigh: directly goto out after setting nud_state to NUD_FAILED

PATCH Applied Duan Jiong 2 participants 2 messages Feb 27, 2014

Subsystems (2)
lore
Share & tools
lore

Duan Jiong

author
#0 lore raw

PATCH 1/1 neigh: directly goto out after setting nud_state to NUD_FAILED

Because those following if conditions will not be matched.

---
 net/core/neighbour.c | 1 +
 1 file changed, 1 insertion(+)
net/core/neighbour.c +1 -0
index b9e9e0d..026bfd1 100644
@@ -945,6 +945,7 @@ static void neigh_timer_handler(unsigned long arg)
 		neigh->nud_state = NUD_FAILED;
 		notify = 1;
 		neigh_invalidate(neigh);
+		goto out;
 	}
 
 	if (neigh->nud_state & NUD_IN_TIMER) {
Signature · 1 line
1.8.3.1