diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-28 18:48:53 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-28 18:48:53 -0800 |
commit | 64a028a6de08545a2c94f302bc7694bf48aee5b5 (patch) | |
tree | d01fd905efb117cb5b00443464073a6539a23684 /security/inode.c | |
parent | 3d29935ff0773fe466e957f17284ca777a2aaa89 (diff) | |
parent | 12e9a45609054fb83d4a8b716a5265cc1a393e10 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
Fix failure exit in ipathfs
fix oops in fs/9p late mount failure
fix leak in romfs_fill_super()
get rid of pointless checks after simple_pin_fs()
Fix failure exits in bfs_fill_super()
fix affs parse_options()
Fix remount races with symlink handling in affs
Fix a leak in affs_fill_super()
Diffstat (limited to 'security/inode.c')
-rw-r--r-- | security/inode.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/security/inode.c b/security/inode.c index f7496c6a022..c3a793881d0 100644 --- a/security/inode.c +++ b/security/inode.c @@ -156,15 +156,8 @@ static int create_by_name(const char *name, mode_t mode, * block. A pointer to that is in the struct vfsmount that we * have around. */ - if (!parent ) { - if (mount && mount->mnt_sb) { - parent = mount->mnt_sb->s_root; - } - } - if (!parent) { - pr_debug("securityfs: Ah! can not find a parent!\n"); - return -EFAULT; - } + if (!parent) + parent = mount->mnt_sb->s_root; mutex_lock(&parent->d_inode->i_mutex); *dentry = lookup_one_len(name, parent, strlen(name)); |