diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/hugetlb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 8874c8ad55aa..4494976c2042 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -77,14 +77,13 @@ struct hugepage_subpool *hugepage_new_subpool(long nr_blocks) | |||
77 | { | 77 | { |
78 | struct hugepage_subpool *spool; | 78 | struct hugepage_subpool *spool; |
79 | 79 | ||
80 | spool = kmalloc(sizeof(*spool), GFP_KERNEL); | 80 | spool = kzalloc(sizeof(*spool), GFP_KERNEL); |
81 | if (!spool) | 81 | if (!spool) |
82 | return NULL; | 82 | return NULL; |
83 | 83 | ||
84 | spin_lock_init(&spool->lock); | 84 | spin_lock_init(&spool->lock); |
85 | spool->count = 1; | 85 | spool->count = 1; |
86 | spool->max_hpages = nr_blocks; | 86 | spool->max_hpages = nr_blocks; |
87 | spool->used_hpages = 0; | ||
88 | 87 | ||
89 | return spool; | 88 | return spool; |
90 | } | 89 | } |