aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/core.c
diff options
context:
space:
mode:
authorThomas Graf <[email protected]>2015-03-30 11:57:41 +0000
committerDavid S. Miller <[email protected]>2015-03-31 19:59:50 +0000
commitfa2d8ff4e3522b4e05f590575d3eb8087f3a8cdc (patch)
tree20fa81f468f65e08a7e2470397f7fbf142cb5ca4 /net/tipc/core.c
parentnetlink: pad nla_memcpy dest buffer with zeroes (diff)
downloadkernel-fa2d8ff4e3522b4e05f590575d3eb8087f3a8cdc.tar.gz
kernel-fa2d8ff4e3522b4e05f590575d3eb8087f3a8cdc.zip
openvswitch: Return vport module ref before destruction
Return module reference before invoking the respective vport ->destroy() function. This is needed as ovs_vport_del() is not invoked inside an RCU read side critical section so the kfree can occur immediately before returning to ovs_vport_del(). Returning the module reference before ->destroy() is safe because the module unregistration is blocked on ovs_lock which we hold while destroying the datapath. Fixes: 62b9c8d0372d ("ovs: Turn vports with dependencies into separate modules") Reported-by: Pravin Shelar <[email protected]> Signed-off-by: Thomas Graf <[email protected]> Acked-by: Pravin B Shelar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/core.c')
0 files changed, 0 insertions, 0 deletions