Re: [NET]: should explicitely initialize atomic_t field in struct dst_ops

2008-01-30 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Thu, 24 Jan 2008 16:11:17 +0100 > 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

[NET]: should explicitely initialize atomic_t field in struct dst_ops

2008-01-24 Thread Eric Dumazet
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 <[EMAIL PROTECTED]> net/ipv4/route.c|2 ++ net/ipv4/xfrm4_po