Skip to content

Commit

Permalink
Merge tag 'fixes-v5.9a' of git://git.kernel.org/pub/scm/linux/kernel/…
Browse files Browse the repository at this point in the history
…git/jmorris/linux-security

Pull security layer fix from James  Morris:
 "A device_cgroup RCU warning fix from Amol Grover"

* tag 'fixes-v5.9a' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
  device_cgroup: Fix RCU list debugging warning
  • Loading branch information
Linus Torvalds committed Sep 15, 2020
2 parents 00acc50 + bc62d68 commit 1e484d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security/device_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ static bool match_exception_partial(struct list_head *exceptions, short type,
{
struct dev_exception_item *ex;

list_for_each_entry_rcu(ex, exceptions, list) {
list_for_each_entry_rcu(ex, exceptions, list,
lockdep_is_held(&devcgroup_mutex)) {
if ((type & DEVCG_DEV_BLOCK) && !(ex->type & DEVCG_DEV_BLOCK))
continue;
if ((type & DEVCG_DEV_CHAR) && !(ex->type & DEVCG_DEV_CHAR))
Expand Down

0 comments on commit 1e484d3

Please sign in to comment.