mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
04d7f1fb7d
commit
88ff7334f2
6 changed files with 8 additions and 0 deletions
|
|
@ -215,6 +215,7 @@ static const struct lwtunnel_encap_ops mpls_iptun_ops = {
|
|||
.fill_encap = mpls_fill_encap_info,
|
||||
.get_encap_size = mpls_encap_nlsize,
|
||||
.cmp_encap = mpls_encap_cmp,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int __init mpls_iptunnel_init(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue