diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index d70c8aaf5acc53ae931bf304f861ee56a6ba82df..014ee6533e2e9e3ddbc532ca546691d0c81d7877 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -1183,6 +1183,8 @@ static struct inode *hugetlbfs_alloc_inode(struct super_block *sb) if (huge_page_size(sbinfo->hstate) == PMD_SIZE || huge_page_size(sbinfo->hstate) == PUD_SIZE) p->hpool = get_dhugetlb_pool_from_task(current); + else + p->hpool = NULL; #endif return &p->vfs_inode;