summaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_policy.c
diff options
context:
space:
mode:
authorEric Dumazet2008-01-31 05:07:45 +0100
committerDavid S. Miller2008-02-01 04:27:23 +0100
commite242297055f906e8e225fb95a8edbc88e9052634 (patch)
treed0fb2d3ba0273bd621681b8de7621ee9b73baf44 /net/ipv4/xfrm4_policy.c
parent[TCP]: NewReno must count every skb while marking losses (diff)
downloadkernel-qcow2-linux-e242297055f906e8e225fb95a8edbc88e9052634.tar.gz
kernel-qcow2-linux-e242297055f906e8e225fb95a8edbc88e9052634.tar.xz
kernel-qcow2-linux-e242297055f906e8e225fb95a8edbc88e9052634.zip
[NET]: should explicitely initialize atomic_t field in struct dst_ops
All but one struct dst_ops static initializations miss explicit initialization of entries field. As this field is atomic_t, we should use ATOMIC_INIT(0), and not rely on atomic_t implementation. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r--net/ipv4/xfrm4_policy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c
index 3783e3ee56a4..10ed70491434 100644
--- a/net/ipv4/xfrm4_policy.c
+++ b/net/ipv4/xfrm4_policy.c
@@ -247,6 +247,7 @@ static struct dst_ops xfrm4_dst_ops = {
.local_out = __ip_local_out,
.gc_thresh = 1024,
.entry_size = sizeof(struct xfrm_dst),
+ .entries = ATOMIC_INIT(0),
};
static struct xfrm_policy_afinfo xfrm4_policy_afinfo = {