neigh: directly goto out after setting nud_state to NUD_FAILED
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- net/core/neighbour.c | 1 + 1 file changed, 1 insertion(+)
net/core/neighbour.c +1 -0
@@ -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
From: Duan Jiong <[email protected]>
Date: Thu, 27 Feb 2014 17:03:03 +0800
Quoted 3 lines
Because those following if conditions will not be matched.
Signed-off-by Duan Jiong <[email protected]>
Applied, thank you.