diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-07 18:21:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:52:41 -0500 |
commit | 4c1d5a64f134b254552b6211f6f79a1da667eab7 (patch) | |
tree | 130b704f727054b93f2a784a8d08252a1ecda3a0 /security/inode.c | |
parent | 32dc730860155b235f13e0cd3fe58b263279baf9 (diff) | |
download | linux-3.10-4c1d5a64f134b254552b6211f6f79a1da667eab7.tar.gz linux-3.10-4c1d5a64f134b254552b6211f6f79a1da667eab7.tar.bz2 linux-3.10-4c1d5a64f134b254552b6211f6f79a1da667eab7.zip |
vfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_root
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/inode.c')
-rw-r--r-- | security/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/inode.c b/security/inode.c index c4df2fbebe6..a67004f9d10 100644 --- a/security/inode.c +++ b/security/inode.c @@ -159,7 +159,7 @@ static int create_by_name(const char *name, mode_t mode, * have around. */ if (!parent) - parent = mount->mnt_sb->s_root; + parent = mount->mnt_root; mutex_lock(&parent->d_inode->i_mutex); *dentry = lookup_one_len(name, parent, strlen(name)); |