mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull selinux fix from James Morris: "Fix for a list corruption bug in the SELinux code" * 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: selinux: fix inode security list corruption
This commit is contained in:
commit
e56d9fccb1
1 changed files with 1 additions and 1 deletions
|
@ -481,6 +481,7 @@ static int sb_finish_set_opts(struct super_block *sb)
|
|||
list_entry(sbsec->isec_head.next,
|
||||
struct inode_security_struct, list);
|
||||
struct inode *inode = isec->inode;
|
||||
list_del_init(&isec->list);
|
||||
spin_unlock(&sbsec->isec_lock);
|
||||
inode = igrab(inode);
|
||||
if (inode) {
|
||||
|
@ -489,7 +490,6 @@ static int sb_finish_set_opts(struct super_block *sb)
|
|||
iput(inode);
|
||||
}
|
||||
spin_lock(&sbsec->isec_lock);
|
||||
list_del_init(&isec->list);
|
||||
goto next_inode;
|
||||
}
|
||||
spin_unlock(&sbsec->isec_lock);
|
||||
|
|
Loading…
Reference in a new issue