summaryrefslogtreecommitdiffstats
path: root/net/core/neighbour.c
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2014-02-27 17:03:03 +0800
committerDavid S. Miller <davem@davemloft.net>2014-02-27 16:40:38 -0500
commit5e2c21dceb5d324b204fda1f28270bb3dbccedb3 (patch)
tree9c375e2bc688476d52ca3acc188d275eff2230df /net/core/neighbour.c
parent8e1f40ec773b6551eda3cce379b4154a1c21cd97 (diff)
downloadop-kernel-dev-5e2c21dceb5d324b204fda1f28270bb3dbccedb3.zip
op-kernel-dev-5e2c21dceb5d324b204fda1f28270bb3dbccedb3.tar.gz
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>
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r--net/core/neighbour.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 36d3f8c..fbde4e3 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -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) {
OpenPOWER on IntegriCloud