summaryrefslogtreecommitdiffstats
path: root/kernel/security/device_cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/security/device_cgroup.c')
-rw-r--r--kernel/security/device_cgroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/security/device_cgroup.c b/kernel/security/device_cgroup.c
index 188c1d263..03c1652c9 100644
--- a/kernel/security/device_cgroup.c
+++ b/kernel/security/device_cgroup.c
@@ -400,9 +400,9 @@ static bool verify_new_ex(struct dev_cgroup *dev_cgroup,
{
bool match = false;
- rcu_lockdep_assert(rcu_read_lock_held() ||
- lockdep_is_held(&devcgroup_mutex),
- "device_cgroup:verify_new_ex called without proper synchronization");
+ RCU_LOCKDEP_WARN(!rcu_read_lock_held() &&
+ !lockdep_is_held(&devcgroup_mutex),
+ "device_cgroup:verify_new_ex called without proper synchronization");
if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW) {
if (behavior == DEVCG_DEFAULT_ALLOW) {