Skip to content
Commit fd13fe16 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Don't cpuhp_remove_state() if cpuhp_setup_state() failed



Currently, in CONFIG_RCU_BOOST kernels, if the rcu_torture_init()
function's call to cpuhp_setup_state() fails, rcu_torture_cleanup()
gamely passes nonsense to cpuhp_remove_state().  This results in
strange and misleading splats.  This commit therefore ensures that if
the rcu_torture_init() function's call to cpuhp_setup_state() fails,
rcu_torture_cleanup() avoids invoking cpuhp_remove_state().

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent eb77abfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment