mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
sysfs: fix root sysfs_dirent -> root dentry association
The root sysfs_dirent didn't point to the root dentry fix it. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
8312a8d7c1
commit
0b8ead82f5
1 changed files with 1 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
iput(inode);
|
||||
return -ENOMEM;
|
||||
}
|
||||
sysfs_root.s_dentry = root;
|
||||
root->d_fsdata = &sysfs_root;
|
||||
sb->s_root = root;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue