[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1448471127-26271-1-git-send-email-pabeni@redhat.com>
Date: Wed, 25 Nov 2015 18:05:27 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: netdev@...r.kernel.org
Cc: Pravin Shelar <pshelar@...ira.com>, Thomas Graf <tgraf@...g.ch>
Subject: [PATCH net] openvswitch: properly refcount vport-vxlan module
After 614732eaa12d, no refcount is mainteined for the vport-vxlan module.
This allows the userspace to remove such module while vport-vxlan
devices still exist, which lead to later oops, i.e. when
the openvswitch module is removed.
Fixes: 614732eaa12d ("openvswitch: Use regular VXLAN net_device device")
Signed-off-by: Paolo Abeni <pabeni@...hat.com>
---
net/openvswitch/vport-vxlan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/openvswitch/vport-vxlan.c b/net/openvswitch/vport-vxlan.c
index 1605691..a2a83f3 100644
--- a/net/openvswitch/vport-vxlan.c
+++ b/net/openvswitch/vport-vxlan.c
@@ -152,6 +152,7 @@ static struct vport_ops ovs_vxlan_netdev_vport_ops = {
.destroy = ovs_netdev_tunnel_destroy,
.get_options = vxlan_get_options,
.send = dev_queue_xmit,
+ .owner = THIS_MODULE,
};
static int __init ovs_vxlan_tnl_init(void)
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists