Loading fs/namei.c +4 −1 Original line number Original line Diff line number Diff line Loading @@ -2261,13 +2261,16 @@ mountpoint_last(struct nameidata *nd, struct path *path) dentry = d_alloc(dir, &nd->last); dentry = d_alloc(dir, &nd->last); if (!dentry) { if (!dentry) { error = -ENOMEM; error = -ENOMEM; mutex_unlock(&dir->d_inode->i_mutex); goto out; goto out; } } dentry = lookup_real(dir->d_inode, dentry, nd->flags); dentry = lookup_real(dir->d_inode, dentry, nd->flags); error = PTR_ERR(dentry); error = PTR_ERR(dentry); if (IS_ERR(dentry)) if (IS_ERR(dentry)) { mutex_unlock(&dir->d_inode->i_mutex); goto out; goto out; } } } mutex_unlock(&dir->d_inode->i_mutex); mutex_unlock(&dir->d_inode->i_mutex); done: done: Loading Loading
fs/namei.c +4 −1 Original line number Original line Diff line number Diff line Loading @@ -2261,13 +2261,16 @@ mountpoint_last(struct nameidata *nd, struct path *path) dentry = d_alloc(dir, &nd->last); dentry = d_alloc(dir, &nd->last); if (!dentry) { if (!dentry) { error = -ENOMEM; error = -ENOMEM; mutex_unlock(&dir->d_inode->i_mutex); goto out; goto out; } } dentry = lookup_real(dir->d_inode, dentry, nd->flags); dentry = lookup_real(dir->d_inode, dentry, nd->flags); error = PTR_ERR(dentry); error = PTR_ERR(dentry); if (IS_ERR(dentry)) if (IS_ERR(dentry)) { mutex_unlock(&dir->d_inode->i_mutex); goto out; goto out; } } } mutex_unlock(&dir->d_inode->i_mutex); mutex_unlock(&dir->d_inode->i_mutex); done: done: Loading