Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335617
b: refs/heads/master
c: 201e72a
h: refs/heads/master
i:
  335615: fc0bd36
v: v3
  • Loading branch information
Tejun Heo committed Nov 6, 2012
1 parent ffc0b51 commit e9cbb85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64e104771351d365e51e588a0e9a656ae6ed2f50
refs/heads/master: 201e72acb2d3821e2de9ce6091e98859c316b29a
6 changes: 3 additions & 3 deletions trunk/security/device_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ static void dev_exception_clean(struct dev_cgroup *dev_cgroup)
struct dev_exception_item *ex, *tmp;

list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) {
list_del(&ex->list);
kfree(ex);
list_del_rcu(&ex->list);
kfree_rcu(ex, rcu);
}
}

Expand Down Expand Up @@ -298,7 +298,7 @@ static int may_access(struct dev_cgroup *dev_cgroup,
struct dev_exception_item *ex;
bool match = false;

list_for_each_entry(ex, &dev_cgroup->exceptions, list) {
list_for_each_entry_rcu(ex, &dev_cgroup->exceptions, list) {
if ((refex->type & DEV_BLOCK) && !(ex->type & DEV_BLOCK))
continue;
if ((refex->type & DEV_CHAR) && !(ex->type & DEV_CHAR))
Expand Down

0 comments on commit e9cbb85

Please sign in to comment.