diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index ae2959bb59cb..034617f8cdb2 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -1020,7 +1020,7 @@ static long region_chg(struct list_head *head, long f, long t) | |||
1020 | * size such that we can guarentee to record the reservation. */ | 1020 | * size such that we can guarentee to record the reservation. */ |
1021 | if (&rg->link == head || t < rg->from) { | 1021 | if (&rg->link == head || t < rg->from) { |
1022 | nrg = kmalloc(sizeof(*nrg), GFP_KERNEL); | 1022 | nrg = kmalloc(sizeof(*nrg), GFP_KERNEL); |
1023 | if (nrg == 0) | 1023 | if (!nrg) |
1024 | return -ENOMEM; | 1024 | return -ENOMEM; |
1025 | nrg->from = f; | 1025 | nrg->from = f; |
1026 | nrg->to = f; | 1026 | nrg->to = f; |