summaryrefslogtreecommitdiff
path: root/net/openvswitch/vport-gre.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2015-11-30 14:31:43 +0300
committerDavid S. Miller <davem@davemloft.net>2015-12-02 19:50:59 +0300
commit83e4bf7a7486532df2dc3db27e0e07a250990ed2 (patch)
tree0f299bcb43b700b7bfdab63a998ba4070613a649 /net/openvswitch/vport-gre.c
parentfbca9d2d35c6ef1b323fae75cc9545005ba25097 (diff)
downloadlinux-83e4bf7a7486532df2dc3db27e0e07a250990ed2.tar.xz
openvswitch: properly refcount vport-vxlan module
After 614732eaa12d, no refcount is maintained for the vport-vxlan module. This allows the userspace to remove such module while vport-vxlan devices still exist, which leads to later oops. v1 -> v2: - move vport 'owner' initialization in ovs_vport_ops_register() and make such function a macro Fixes: 614732eaa12d ("openvswitch: Use regular VXLAN net_device device") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/vport-gre.c')
-rw-r--r--net/openvswitch/vport-gre.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c
index c3257d78d3d2..7f8897f33a67 100644
--- a/net/openvswitch/vport-gre.c
+++ b/net/openvswitch/vport-gre.c
@@ -89,7 +89,6 @@ static struct vport_ops ovs_gre_vport_ops = {
.create = gre_create,
.send = dev_queue_xmit,
.destroy = ovs_netdev_tunnel_destroy,
- .owner = THIS_MODULE,
};
static int __init ovs_gre_tnl_init(void)