]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: use a more suitable function when assigning NULL
authorMark Bloch <markb@mellanox.com>
Wed, 7 Jun 2017 11:36:58 +0000 (14:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 19:26:03 +0000 (15:26 -0400)
commit089b9cbcd5ea62407868ab63071fbc939ac96da6
tree8d2a087ee5737a1de6560ce3a094500742eae02b
parent7d9953d248c80f48d94b696b66367528703b06dd
vxlan: use a more suitable function when assigning NULL

When stopping the vxlan interface we detach it from the socket.
Use RCU_INIT_POINTER() and not rcu_assign_pointer() to do so.

Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c