diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-01-07 21:07:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 11:31:03 -0500 |
commit | 116e05751285c20edf5768ca3bcc00dad86181bb (patch) | |
tree | a95c51476e30fb1374dc50d6051c7216f23afa2f /security/device_cgroup.c | |
parent | a47295e6bc42ad35f9c15ac66f598aa24debd4e2 (diff) |
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 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)) |