diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-01-07 18:07:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 08:31:03 -0800 |
commit | 116e05751285c20edf5768ca3bcc00dad86181bb (patch) | |
tree | a95c51476e30fb1374dc50d6051c7216f23afa2f /security/device_cgroup.c | |
parent | a47295e6bc42ad35f9c15ac66f598aa24debd4e2 (diff) | |
download | kernel_samsung_tuna-116e05751285c20edf5768ca3bcc00dad86181bb.zip kernel_samsung_tuna-116e05751285c20edf5768ca3bcc00dad86181bb.tar.gz kernel_samsung_tuna-116e05751285c20edf5768ca3bcc00dad86181bb.tar.bz2 |
devcgroup: use list_for_each_entry_rcu()
We should use list_for_each_entry_rcu in RCU read site.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/device_cgroup.c')
-rw-r--r-- | security/device_cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c index 5ba7870..cd377b9 100644 --- a/security/device_cgroup.c +++ b/security/device_cgroup.c @@ -517,7 +517,7 @@ int devcgroup_inode_mknod(int mode, dev_t dev) dev_cgroup = task_devcgroup(current); - list_for_each_entry(wh, &dev_cgroup->whitelist, list) { + list_for_each_entry_rcu(wh, &dev_cgroup->whitelist, list) { if (wh->type & DEV_ALL) goto acc_check; if ((wh->type & DEV_BLOCK) && !S_ISBLK(mode)) |