Skip to content

Commit

Permalink
Merge tag 'configfs-for-5.4-2' of git://git.infradead.org/users/hch/c…
Browse files Browse the repository at this point in the history
…onfigfs

Pull configfs regression fix from Christoph Hellwig:
 "Fix a regression from this merge window in the configfs symlink
  handling (Honggang Li)"

* tag 'configfs-for-5.4-2' of git://git.infradead.org/users/hch/configfs:
  configfs: calculate the depth of parent item
  • Loading branch information
torvalds committed Nov 10, 2019
2 parents 9805a68 + e2f238f commit a5871fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/configfs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int create_link(struct config_item *parent_item,
}
target_sd->s_links++;
spin_unlock(&configfs_dirent_lock);
ret = configfs_get_target_path(item, item, body);
ret = configfs_get_target_path(parent_item, item, body);
if (!ret)
ret = configfs_create_link(target_sd, parent_item->ci_dentry,
dentry, body);
Expand Down

0 comments on commit a5871fc

Please sign in to comment.