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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index e9fddcc59447..2a94dc36d166 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -54,7 +54,7 @@ void release_sysfs_dirent(struct sysfs_dirent * sd)
54 parent_sd = sd->s_parent; 54 parent_sd = sd->s_parent;
55 55
56 if (sd->s_type & SYSFS_KOBJ_LINK) 56 if (sd->s_type & SYSFS_KOBJ_LINK)
57 kobject_put(sd->s_elem.symlink.target_kobj); 57 sysfs_put(sd->s_elem.symlink.target_sd);
58 if (sd->s_type & SYSFS_COPY_NAME) 58 if (sd->s_type & SYSFS_COPY_NAME)
59 kfree(sd->s_name); 59 kfree(sd->s_name);
60 kfree(sd->s_iattr); 60 kfree(sd->s_iattr);