Loading fs/debugfs/inode.c +2 −9 Original line number Diff line number Diff line Loading @@ -160,15 +160,8 @@ static int debugfs_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 (debugfs_mount && debugfs_mount->mnt_sb) { if (!parent) parent = debugfs_mount->mnt_sb->s_root; } } if (!parent) { pr_debug("debugfs: Ah! can not find a parent!\n"); return -EFAULT; } *dentry = NULL; mutex_lock(&parent->d_inode->i_mutex); Loading security/inode.c +2 −9 Original line number Diff line number Diff line Loading @@ -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) { if (!parent) parent = mount->mnt_sb->s_root; } } if (!parent) { pr_debug("securityfs: Ah! can not find a parent!\n"); return -EFAULT; } mutex_lock(&parent->d_inode->i_mutex); *dentry = lookup_one_len(name, parent, strlen(name)); Loading Loading
fs/debugfs/inode.c +2 −9 Original line number Diff line number Diff line Loading @@ -160,15 +160,8 @@ static int debugfs_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 (debugfs_mount && debugfs_mount->mnt_sb) { if (!parent) parent = debugfs_mount->mnt_sb->s_root; } } if (!parent) { pr_debug("debugfs: Ah! can not find a parent!\n"); return -EFAULT; } *dentry = NULL; mutex_lock(&parent->d_inode->i_mutex); Loading
security/inode.c +2 −9 Original line number Diff line number Diff line Loading @@ -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) { if (!parent) parent = mount->mnt_sb->s_root; } } if (!parent) { pr_debug("securityfs: Ah! can not find a parent!\n"); return -EFAULT; } mutex_lock(&parent->d_inode->i_mutex); *dentry = lookup_one_len(name, parent, strlen(name)); Loading