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

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

Fixes: fceb9c3e3825 ("geneve: avoid using stale geneve socket.")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c