aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/dir.c')
-rw-r--r--fs/sysfs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index fc615eed67dc..6ee76a82eb38 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -273,7 +273,7 @@ void release_sysfs_dirent(struct sysfs_dirent * sd)
273 parent_sd = sd->s_parent; 273 parent_sd = sd->s_parent;
274 274
275 if (sysfs_type(sd) == SYSFS_KOBJ_LINK) 275 if (sysfs_type(sd) == SYSFS_KOBJ_LINK)
276 sysfs_put(sd->s_elem.symlink.target_sd); 276 sysfs_put(sd->s_symlink.target_sd);
277 if (sysfs_type(sd) & SYSFS_COPY_NAME) 277 if (sysfs_type(sd) & SYSFS_COPY_NAME)
278 kfree(sd->s_name); 278 kfree(sd->s_name);
279 kfree(sd->s_iattr); 279 kfree(sd->s_iattr);
@@ -630,7 +630,7 @@ static int create_dir(struct kobject *kobj, struct sysfs_dirent *parent_sd,
630 sd = sysfs_new_dirent(name, mode, SYSFS_DIR); 630 sd = sysfs_new_dirent(name, mode, SYSFS_DIR);
631 if (!sd) 631 if (!sd)
632 return -ENOMEM; 632 return -ENOMEM;
633 sd->s_elem.dir.kobj = kobj; 633 sd->s_dir.kobj = kobj;
634 634
635 /* link in */ 635 /* link in */
636 sysfs_addrm_start(&acxt, parent_sd); 636 sysfs_addrm_start(&acxt, parent_sd);