X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Fsecurity%2Fdevice_cgroup.c;h=03c1652c9a1f593669b6d9e3a0bd2e65e47da239;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hp=188c1d26393b56bfd13814e7834119a440410114;hpb=f93b97fd65072de626c074dbe099a1fff05ce060;p=kvmfornfv.git 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) {