commit | c8ca1aa774b20f182733d1661f3b6aa3105338e7 | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@linux.ibm.com> | Fri Nov 30 10:06:46 2018 -0800 |
committer | Paul E. McKenney <paulmck@linux.ibm.com> | Fri Jan 25 15:36:40 2019 -0800 |
tree | 4bf5a3fd65d0e71fe2f1de535859dddd9c6214d7 | |
parent | 7a968bb26a9b09b6e44c48a8036a73e0bc497dbc [diff] |
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: Paul E. McKenney <paulmck@linux.ibm.com>