X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=security%2Finode.c;h=c3a793881d04f0c578049f986ce98cb778d71895;hb=67dcabd06126084295b5825d3d7f584450dd8553;hp=f7496c6a022b7c2213f061c17b435bf0328085ed;hpb=5291a12f0503e31e0b8e90ee8e4997d59c1c3aad;p=~andy%2Flinux 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));