locktorture: Check the correct variable for allocation failure
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 28 Sep 2023 07:06:11 +0000 (10:06 +0300)
committerFrederic Weisbecker <frederic@kernel.org>
Wed, 11 Oct 2023 13:55:26 +0000 (15:55 +0200)
commitcefe8ce559b5ff301f59b44f97c5c313ec30c643
tree424f1e304fc164af5d469d5f7abae1a8ae2b9c86
parent3e9b009c168e2448ab16f98f10045360b5b41816
locktorture: Check the correct variable for allocation failure

There is a typo so this checks the wrong variable.  "chains" plural vs
"chain" singular.  We already know that "chains" is non-zero.

Fixes: 7f993623e9eb ("locktorture: Add call_rcu_chains module parameter")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/locking/locktorture.c