diff options
author | Robert Shearman <rshearma@brocade.com> | 2017-01-24 19:26:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-25 00:21:36 +0300 |
commit | 88ff7334f25909802140e690c0e16433e485b0a0 (patch) | |
tree | acd6fa564ab6818a88aec7d60c65d8d164d09e08 /net/ipv6/seg6_iptunnel.c | |
parent | 04d7f1fb7d25256d8c21b78c7d46193b4a7fabfe (diff) | |
download | linux-88ff7334f25909802140e690c0e16433e485b0a0.tar.xz |
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/ipv6/seg6_iptunnel.c')
-rw-r--r-- | net/ipv6/seg6_iptunnel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/seg6_iptunnel.c b/net/ipv6/seg6_iptunnel.c index 1d60cb132835..c46f8cbf5ab5 100644 --- a/net/ipv6/seg6_iptunnel.c +++ b/net/ipv6/seg6_iptunnel.c @@ -422,6 +422,7 @@ static const struct lwtunnel_encap_ops seg6_iptun_ops = { .fill_encap = seg6_fill_encap_info, .get_encap_size = seg6_encap_nlsize, .cmp_encap = seg6_encap_cmp, + .owner = THIS_MODULE, }; int __init seg6_iptunnel_init(void) |