diff options
Diffstat (limited to 'fs/hugetlbfs/inode.c')
-rw-r--r-- | fs/hugetlbfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 842a4ed4052d..98959b87cdf8 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -747,6 +747,9 @@ struct file *hugetlb_zero_setup(size_t size) | |||
747 | char buf[16]; | 747 | char buf[16]; |
748 | static atomic_t counter; | 748 | static atomic_t counter; |
749 | 749 | ||
750 | if (!hugetlbfs_vfsmount) | ||
751 | return ERR_PTR(-ENOENT); | ||
752 | |||
750 | if (!can_do_hugetlb_shm()) | 753 | if (!can_do_hugetlb_shm()) |
751 | return ERR_PTR(-EPERM); | 754 | return ERR_PTR(-EPERM); |
752 | 755 | ||