summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_tunnel_core.c
diff options
context:
space:
mode:
authorRobert Shearman <rshearma@brocade.com>2017-01-24 16:26:47 +0000
committerDavid S. Miller <davem@davemloft.net>2017-01-24 16:21:36 -0500
commit88ff7334f25909802140e690c0e16433e485b0a0 (patch)
treeacd6fa564ab6818a88aec7d60c65d8d164d09e08 /net/ipv4/ip_tunnel_core.c
parent04d7f1fb7d25256d8c21b78c7d46193b4a7fabfe (diff)
downloadop-kernel-dev-88ff7334f25909802140e690c0e16433e485b0a0.zip
op-kernel-dev-88ff7334f25909802140e690c0e16433e485b0a0.tar.gz
net: Specify the owning module for lwtunnel ops
Modules implementing lwtunnel ops should not be allowed to unload while there is state alive using those ops, so specify the owning module for all lwtunnel ops. Signed-off-by: Robert Shearman <rshearma@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_tunnel_core.c')
-rw-r--r--net/ipv4/ip_tunnel_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ip_tunnel_core.c b/net/ipv4/ip_tunnel_core.c
index fed3d29..0fd1976 100644
--- a/net/ipv4/ip_tunnel_core.c
+++ b/net/ipv4/ip_tunnel_core.c
@@ -313,6 +313,7 @@ static const struct lwtunnel_encap_ops ip_tun_lwt_ops = {
.fill_encap = ip_tun_fill_encap_info,
.get_encap_size = ip_tun_encap_nlsize,
.cmp_encap = ip_tun_cmp_encap,
+ .owner = THIS_MODULE,
};
static const struct nla_policy ip6_tun_policy[LWTUNNEL_IP6_MAX + 1] = {
@@ -403,6 +404,7 @@ static const struct lwtunnel_encap_ops ip6_tun_lwt_ops = {
.fill_encap = ip6_tun_fill_encap_info,
.get_encap_size = ip6_tun_encap_nlsize,
.cmp_encap = ip_tun_cmp_encap,
+ .owner = THIS_MODULE,
};
void __init ip_tunnel_core_init(void)
OpenPOWER on IntegriCloud