diff options
-rw-r--r-- | fs/nfs/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index fa517ae9207f..71067d1ac9d9 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -1474,6 +1474,11 @@ static int nfs_xdev_get_sb(struct file_system_type *fs_type, int flags, | |||
1474 | error = PTR_ERR(mntroot); | 1474 | error = PTR_ERR(mntroot); |
1475 | goto error_splat_super; | 1475 | goto error_splat_super; |
1476 | } | 1476 | } |
1477 | if (mntroot->d_inode->i_op != &nfs_dir_inode_operations) { | ||
1478 | dput(mntroot); | ||
1479 | error = -ESTALE; | ||
1480 | goto error_splat_super; | ||
1481 | } | ||
1477 | 1482 | ||
1478 | s->s_flags |= MS_ACTIVE; | 1483 | s->s_flags |= MS_ACTIVE; |
1479 | mnt->mnt_sb = s; | 1484 | mnt->mnt_sb = s; |