All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit dc3a04d5 authored by Paul E. McKenney's avatar Paul E. McKenney

security/device_cgroup: Fix RCU_LOCKDEP_WARN() condition

f78f5b90 ("rcu: Rename rcu_lockdep_assert() to RCU_LOCKDEP_WARN()")
introduced a bug by incorrectly inverting the condition when moving from
rcu_lockdep_assert() to RCU_LOCKDEP_WARN().  This commit therefore fixes
the inversion.
Reported-by: default avatarFelipe Balbi <>
Reported-by: default avatarTejun Heo <>
Signed-off-by: default avatarPaul E. McKenney <>
Acked-by: default avatarSerge Hallyn <>
Tested-by: default avatarJosh Boyer <>
parent 12d560f4
......@@ -401,7 +401,7 @@ static bool verify_new_ex(struct dev_cgroup *dev_cgroup,
bool match = false;
RCU_LOCKDEP_WARN(!rcu_read_lock_held() &&
"device_cgroup:verify_new_ex called without proper synchronization");
if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment