]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5e0103824029024f9c1feefd20f9ecb421e81a4
tree9db6225d48f70646900c1e5347371d7b747c9e6f
parentfdd4f3532ae080e5ea78d59a8dcc9e171f750257
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