diff options
author | James Morris <james.l.morris@oracle.com> | 2014-10-16 06:04:18 -0400 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2014-10-16 06:04:18 -0400 |
commit | 9b32011acdc4428474b7cba865f713a11b9b9bd3 (patch) | |
tree | d781cae7fd53a4f19d0d64503ae605dd01855613 /security | |
parent | 0429fbc0bdc297d64188483ba029a23773ae07b0 (diff) | |
parent | 923190d32de4428afbea5e5773be86bea60a9925 (diff) |
Merge branch 'stable-3.18' of git://git.infradead.org/users/pcmoore/selinux into for-linus2
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 8426a2aa8dce..e66314138b38 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -481,6 +481,7 @@ next_inode: | |||
481 | list_entry(sbsec->isec_head.next, | 481 | list_entry(sbsec->isec_head.next, |
482 | struct inode_security_struct, list); | 482 | struct inode_security_struct, list); |
483 | struct inode *inode = isec->inode; | 483 | struct inode *inode = isec->inode; |
484 | list_del_init(&isec->list); | ||
484 | spin_unlock(&sbsec->isec_lock); | 485 | spin_unlock(&sbsec->isec_lock); |
485 | inode = igrab(inode); | 486 | inode = igrab(inode); |
486 | if (inode) { | 487 | if (inode) { |
@@ -489,7 +490,6 @@ next_inode: | |||
489 | iput(inode); | 490 | iput(inode); |
490 | } | 491 | } |
491 | spin_lock(&sbsec->isec_lock); | 492 | spin_lock(&sbsec->isec_lock); |
492 | list_del_init(&isec->list); | ||
493 | goto next_inode; | 493 | goto next_inode; |
494 | } | 494 | } |
495 | spin_unlock(&sbsec->isec_lock); | 495 | spin_unlock(&sbsec->isec_lock); |