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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index 49bd219275db..cfd290d3d6b1 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -302,6 +302,7 @@ void sysfs_remove_dir(struct kobject * kobj)
302 * Drop reference from dget() on entrance. 302 * Drop reference from dget() on entrance.
303 */ 303 */
304 dput(dentry); 304 dput(dentry);
305 kobj->dentry = NULL;
305} 306}
306 307
307int sysfs_rename_dir(struct kobject * kobj, const char *new_name) 308int sysfs_rename_dir(struct kobject * kobj, const char *new_name)