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 <pab...@redhat.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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to