diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 285a81e87ec8..e198831276a3 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -3036,7 +3036,8 @@ int hugetlb_reserve_pages(struct inode *inode, | |||
3036 | region_add(&inode->i_mapping->private_list, from, to); | 3036 | region_add(&inode->i_mapping->private_list, from, to); |
3037 | return 0; | 3037 | return 0; |
3038 | out_err: | 3038 | out_err: |
3039 | resv_map_put(vma); | 3039 | if (vma) |
3040 | resv_map_put(vma); | ||
3040 | return ret; | 3041 | return ret; |
3041 | } | 3042 | } |
3042 | 3043 | ||