aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r--fs/sysfs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 4697019fafa3..1656a79ea6c0 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -502,8 +502,8 @@ int sysfs_add_file_mode_ns(struct sysfs_dirent *dir_sd,
502 sd->s_attr.attr = (void *)attr; 502 sd->s_attr.attr = (void *)attr;
503 sysfs_dirent_init_lockdep(sd); 503 sysfs_dirent_init_lockdep(sd);
504 504
505 sysfs_addrm_start(&acxt, dir_sd); 505 sysfs_addrm_start(&acxt);
506 rc = sysfs_add_one(&acxt, sd); 506 rc = sysfs_add_one(&acxt, sd, dir_sd);
507 sysfs_addrm_finish(&acxt); 507 sysfs_addrm_finish(&acxt);
508 508
509 if (rc) 509 if (rc)