Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b8ead82 authored by Tejun Heo's avatar Tejun Heo Committed by Greg Kroah-Hartman
Browse files

sysfs: fix root sysfs_dirent -> root dentry association



The root sysfs_dirent didn't point to the root dentry fix it.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8312a8d7
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -65,6 +65,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
		iput(inode);
		iput(inode);
		return -ENOMEM;
		return -ENOMEM;
	}
	}
	sysfs_root.s_dentry = root;
	root->d_fsdata = &sysfs_root;
	root->d_fsdata = &sysfs_root;
	sb->s_root = root;
	sb->s_root = root;
	return 0;
	return 0;