aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/device_cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c
index 5ba78701adc3..cd377b9082b5 100644
--- a/security/device_cgroup.c
+++ b/security/device_cgroup.c
@@ -517,7 +517,7 @@ int devcgroup_inode_mknod(int mode, dev_t dev)
517 517
518 dev_cgroup = task_devcgroup(current); 518 dev_cgroup = task_devcgroup(current);
519 519
520 list_for_each_entry(wh, &dev_cgroup->whitelist, list) { 520 list_for_each_entry_rcu(wh, &dev_cgroup->whitelist, list) {
521 if (wh->type & DEV_ALL) 521 if (wh->type & DEV_ALL)
522 goto acc_check; 522 goto acc_check;
523 if ((wh->type & DEV_BLOCK) && !S_ISBLK(mode)) 523 if ((wh->type & DEV_BLOCK) && !S_ISBLK(mode))