rcutorture: Better bounds checking for n_barrier_cbs
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 14 May 2015 22:35:43 +0000 (15:35 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Jul 2015 21:47:14 +0000 (14:47 -0700)
commitd9eba768839ac24e47606af36e50c14f10c2211c
treec4afbae3056125dff0a4770c26a717a595d92e99
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
rcutorture: Better bounds checking for n_barrier_cbs

A negative value for rcutorture.n_barrier_cbs can pass a negative value
to the memory allocator, so this commit instead causes rcu_barrier()
testing to be disabled in this case.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcutorture.c