mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-02-10 11:22:43 +01:00
Change exit order in attempt to prevent misc device kobj from sticking around
This commit is contained in:
@@ -165,10 +165,10 @@ static int __init vendor_reset_init(void)
|
||||
|
||||
static void __exit vendor_reset_exit(void)
|
||||
{
|
||||
misc_deregister(&vendor_reset_misc);
|
||||
|
||||
if (install_hook)
|
||||
fh_remove_hooks(fh_hooks);
|
||||
|
||||
misc_deregister(&vendor_reset_misc);
|
||||
}
|
||||
|
||||
module_init(vendor_reset_init);
|
||||
|
||||
Reference in New Issue
Block a user