diff options
Diffstat (limited to 'fs/sysfs/symlink.c')
-rw-r--r-- | fs/sysfs/symlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index 88c8bc5e8911..22ea2f5796f5 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c | |||
@@ -53,11 +53,11 @@ static int sysfs_do_create_link_sd(struct sysfs_dirent *parent_sd, | |||
53 | sd->s_symlink.target_sd = target_sd; | 53 | sd->s_symlink.target_sd = target_sd; |
54 | target_sd = NULL; /* reference is now owned by the symlink */ | 54 | target_sd = NULL; /* reference is now owned by the symlink */ |
55 | 55 | ||
56 | sysfs_addrm_start(&acxt, parent_sd); | 56 | sysfs_addrm_start(&acxt); |
57 | if (warn) | 57 | if (warn) |
58 | error = sysfs_add_one(&acxt, sd); | 58 | error = sysfs_add_one(&acxt, sd, parent_sd); |
59 | else | 59 | else |
60 | error = __sysfs_add_one(&acxt, sd); | 60 | error = __sysfs_add_one(&acxt, sd, parent_sd); |
61 | sysfs_addrm_finish(&acxt); | 61 | sysfs_addrm_finish(&acxt); |
62 | 62 | ||
63 | if (error) | 63 | if (error) |