Skip to content

Commit 7fed248

Browse files
committed
Merge pull request #469 from jstancek/issue468
wait for outstanding shadow variables free requests in kpatch_exit
2 parents f0ab1ca + 6e67e57 commit 7fed248

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kmod/core/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,8 @@ static int kpatch_init(void)
10841084

10851085
static void kpatch_exit(void)
10861086
{
1087+
rcu_barrier();
1088+
10871089
WARN_ON(kpatch_num_patched != 0);
10881090
WARN_ON(unregister_module_notifier(&kpatch_module_nb));
10891091
kobject_put(kpatch_patches_kobj);

0 commit comments

Comments
 (0)