Change exit order in attempt to prevent misc device kobj from sticking around

This commit is contained in:
Adam Madsen 2020-11-10 06:59:30 -06:00
parent c21bcddd9e
commit 25827381f4

View File

@ -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);