mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 06:10:45 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
8e1f40ec77
commit
5e2c21dceb
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user