Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e2c21dc authored by Duan Jiong's avatar Duan Jiong Committed by David S. Miller
Browse files

neigh: directly goto out after setting nud_state to NUD_FAILED



Because those following if conditions will not be matched.

Signed-off-by: default avatarDuan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e1f40ec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {