diff options
author | Robert Shearman <rshearma@brocade.com> | 2017-01-24 16:26:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-24 16:21:36 -0500 |
commit | 88ff7334f25909802140e690c0e16433e485b0a0 (patch) | |
tree | acd6fa564ab6818a88aec7d60c65d8d164d09e08 /net/core/lwt_bpf.c | |
parent | 04d7f1fb7d25256d8c21b78c7d46193b4a7fabfe (diff) | |
download | linux-stable-88ff7334f25909802140e690c0e16433e485b0a0.tar.gz linux-stable-88ff7334f25909802140e690c0e16433e485b0a0.tar.bz2 linux-stable-88ff7334f25909802140e690c0e16433e485b0a0.zip |
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/core/lwt_bpf.c')
-rw-r--r-- | net/core/lwt_bpf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c index 71bb3e2eca08..b3eef90b2df9 100644 --- a/net/core/lwt_bpf.c +++ b/net/core/lwt_bpf.c @@ -386,6 +386,7 @@ static const struct lwtunnel_encap_ops bpf_encap_ops = { .fill_encap = bpf_fill_encap_info, .get_encap_size = bpf_encap_nlsize, .cmp_encap = bpf_encap_cmp, + .owner = THIS_MODULE, }; static int __init bpf_lwt_init(void) |