Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4bd7224 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

core: Hold on to module reference



Do not remove module if the dependent modules are removed.

CRs-Fixed: 2683697
Change-Id: I35539aff061fe57a85f0bb8eb3dcf40499eca760
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent fa1352fa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -761,6 +761,8 @@ static int __init rmnet_init(void)
	}

	rmnet_core_genl_init();

	try_module_get(THIS_MODULE);
	return rc;
}

@@ -769,6 +771,8 @@ static void __exit rmnet_exit(void)
	unregister_netdevice_notifier(&rmnet_dev_notifier);
	rtnl_link_unregister(&rmnet_link_ops);
	rmnet_core_genl_deinit();

	module_put(THIS_MODULE);
}

module_init(rmnet_init)