vxlan: lock RCU on TX path
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 24 Feb 2017 19:43:36 +0000 (11:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Mar 2017 17:58:31 +0000 (09:58 -0800)
commit56de859e9967c070464a9a9f4f18d73f9447298e
treeb24576537ac94fd5b7924df2b1713811749b7b60
parent39e6c8208d7b6fb9d2047850fb3327db567b564b
vxlan: lock RCU on TX path

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>
drivers/net/vxlan.c