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

srcu: Check for invalid idx argument in srcu_read_unlock()



The current SRCU implementation has an idx argument of zero or one,
and never anything else.  This commit therefore adds a WARN_ON_ONCE()
to complain if this restriction is violated.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 7a968bb2
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