Merge pull request #469 from jstancek/issue468

wait for outstanding shadow variables free requests in kpatch_exit
This commit is contained in:
Seth Jennings 2014-11-21 11:45:01 -05:00
commit 7fed248205
1 changed files with 2 additions and 0 deletions

View File

@ -1084,6 +1084,8 @@ err_root_kobj:
static void kpatch_exit(void)
{
rcu_barrier();
WARN_ON(kpatch_num_patched != 0);
WARN_ON(unregister_module_notifier(&kpatch_module_nb));
kobject_put(kpatch_patches_kobj);