Message ID | 20220620225817.3843106-4-paulmck@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 98ea20328786372cbbc90c601be168f5fe1f8845 |
Headers | show |
Series | Torture-test updates for v5.20 | expand |
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 9273264772b88..613711b8242b9 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -3116,6 +3116,7 @@ static void rcu_test_debug_objects(void) pr_alert("%s: WARN: Duplicate call_rcu() test complete.\n", KBUILD_MODNAME); destroy_rcu_head_on_stack(&rh1); destroy_rcu_head_on_stack(&rh2); + kfree(rhp); #else /* #ifdef CONFIG_DEBUG_OBJECTS_RCU_HEAD */ pr_alert("%s: !CONFIG_DEBUG_OBJECTS_RCU_HEAD, not testing duplicate call_rcu()\n", KBUILD_MODNAME); #endif /* #else #ifdef CONFIG_DEBUG_OBJECTS_RCU_HEAD */