vxlan: lock RCU on TX path
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 24 Feb 2017 19:43:36 +0000 (11:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:43:32 +0000 (12:43 +0100)
commit0a40da4a74f1767c8ff7faffe86bcb06cae280ed
tree4fb6cc76e89d108d9663799dddc2bf2299e12e7f
parentfeaa5bab43350b95428dc01cf1f064305e72dd87
vxlan: lock RCU on TX path

[ Upstream commit 56de859e9967c070464a9a9f4f18d73f9447298e ]

There is no guarantees that callers of the TX path will hold
the RCU lock.  Grab it explicitly.

Fixes: c6fcc4fc5f8b ("vxlan: avoid using stale vxlan socket.")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c