uninitialize matches if targets fail to register

This commit is contained in:
Niels Werensteijn 2016-10-11 11:20:13 +02:00
parent 984bab5a3f
commit 927257312b

View File

@ -36,15 +36,19 @@ static int __init ts3init_init(void)
int error;
error = ts3init_match_init();
if (error)
return error;
return error;
error = ts3init_target_init();
if (error)
ts3init_match_exit();
return error;
}
static void __exit ts3init_exit(void)
{
ts3init_match_exit();
ts3init_target_exit();
ts3init_target_exit();
}
module_init(ts3init_init);