aboutsummaryrefslogtreecommitdiff
path: root/net/core/dst.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2015-12-10 07:28:43 -0800
committerKevin Hilman <khilman@linaro.org>2015-12-10 07:28:43 -0800
commita69ce65274ff1589bb64ea782a4178d7210da0bb (patch)
treed039adba20838b165626987a5f63ff89c3e16338 /net/core/dst.c
parentcaf91bc186175f0005ed77295f1acd52c6aeca47 (diff)
parentd235b7b42ab59e2e616082a0735b3bcc76685c7b (diff)
Merge branch 'linux-linaro-lsk-v3.10' into linux-linaro-lsk-v3.10-androidlsk-v3.10-16.01-androidlsk-v3.10-15.12-android
Diffstat (limited to 'net/core/dst.c')
-rw-r--r--net/core/dst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dst.c b/net/core/dst.c
index c0e021871df8..01f9980af86e 100644
--- a/net/core/dst.c
+++ b/net/core/dst.c
@@ -283,7 +283,7 @@ void dst_release(struct dst_entry *dst)
newrefcnt = atomic_dec_return(&dst->__refcnt);
WARN_ON(newrefcnt < 0);
- if (unlikely(dst->flags & DST_NOCACHE) && !newrefcnt)
+ if (!newrefcnt && unlikely(dst->flags & DST_NOCACHE))
call_rcu(&dst->rcu_head, dst_destroy_rcu);
}
}