diff options
-rw-r--r-- | fs/configfs/symlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index dc5dbf6a81d7..cb61467478ca 100644 --- a/fs/configfs/symlink.c +++ b/fs/configfs/symlink.c | |||
@@ -101,7 +101,7 @@ static int create_link(struct config_item *parent_item, | |||
101 | } | 101 | } |
102 | target_sd->s_links++; | 102 | target_sd->s_links++; |
103 | spin_unlock(&configfs_dirent_lock); | 103 | spin_unlock(&configfs_dirent_lock); |
104 | ret = configfs_get_target_path(item, item, body); | 104 | ret = configfs_get_target_path(parent_item, item, body); |
105 | if (!ret) | 105 | if (!ret) |
106 | ret = configfs_create_link(target_sd, parent_item->ci_dentry, | 106 | ret = configfs_create_link(target_sd, parent_item->ci_dentry, |
107 | dentry, body); | 107 | dentry, body); |