ipv4: rcu cleanup in ip_ra_control()
authorEric Dumazet <edumazet@google.com>
Tue, 9 Sep 2014 15:11:41 +0000 (08:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 03:10:44 +0000 (20:10 -0700)
commit8e380f004e8e3c071590426a64210331051a4c42
tree9db6225d48f70646900c1e5347371d7b747c9e6f
parentcbeddd5d163ba7a6cd96a96509f7043cce4f68d2
ipv4: rcu cleanup in ip_ra_control()

Remove one sparse warning :
net/ipv4/ip_sockglue.c:328:22: warning: incorrect type in assignment (different address spaces)
net/ipv4/ip_sockglue.c:328:22:    expected struct ip_ra_chain [noderef] <asn:4>*next
net/ipv4/ip_sockglue.c:328:22:    got struct ip_ra_chain *[assigned] ra

And replace one rcu_assign_ptr() by RCU_INIT_POINTER() where applicable.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c