refscale: Provide for initialization failure
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 7 Nov 2022 04:58:15 +0000 (20:58 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 4 Jan 2023 01:52:54 +0000 (17:52 -0800)
commit3c6496c86e484be94cd8d69e604566dfeaa726a2
tree73fa2aaa7b2f547591ab05eaf6ac5ecc2f0d56a7
parent95f93e97ed0f56f54f74293a0a82e05599d5078d
refscale: Provide for initialization failure

Current tests all have init() functions that are guaranteed to succeed.
But upcoming tests will need to allocate memory, thus possibly failing.
This commit therefore handles init() function failure.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refscale.c