Skip to contentSkip to conversation

RCU fix

GIT PULL Ingo Molnar 1 participant 1 message Sep 17, 2015 Security (LSM)

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-for-linus

# HEAD: 31409c97640ff5f1a49e34ac7f3c82097bf57bec Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/urgent

Fix a false positive warning.

Thanks,

Ingo

------------------>
Paul E. McKenney (1):
security/device_cgroup: Fix RCU_LOCKDEP_WARN() condition

 security/device_cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/device_cgroup.c +1 -1
index 73455089feef..03c1652c9a1f 100644
@@ -401,7 +401,7 @@ static bool verify_new_ex(struct dev_cgroup *dev_cgroup,
 	bool match = false;
 
 	RCU_LOCKDEP_WARN(!rcu_read_lock_held() &&
-			 lockdep_is_held(&devcgroup_mutex),
+			 !lockdep_is_held(&devcgroup_mutex),
 			 "device_cgroup:verify_new_ex called without proper synchronization");
 
 	if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW) {