[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>
This commit is contained in:
committed by
David S. Miller
parent
ad1984e844
commit
e242297055
@@ -272,6 +272,7 @@ static struct dst_ops xfrm6_dst_ops = {
|
||||
.local_out = __ip6_local_out,
|
||||
.gc_thresh = 1024,
|
||||
.entry_size = sizeof(struct xfrm_dst),
|
||||
.entries = ATOMIC_INIT(0),
|
||||
};
|
||||
|
||||
static struct xfrm_policy_afinfo xfrm6_policy_afinfo = {
|
||||
|
Reference in New Issue
Block a user