diff options
-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 989cb032eaf5..452a4e536237 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -1457,7 +1457,7 @@ int __weak alloc_bootmem_huge_page(struct hstate *h) | |||
1457 | return 0; | 1457 | return 0; |
1458 | 1458 | ||
1459 | found: | 1459 | found: |
1460 | BUG_ON((unsigned long)virt_to_phys(m) & (huge_page_size(h) - 1)); | 1460 | BUG_ON(!IS_ALIGNED(virt_to_phys(m), huge_page_size(h))); |
1461 | /* Put them into a private list first because mem_map is not up yet */ | 1461 | /* Put them into a private list first because mem_map is not up yet */ |
1462 | list_add(&m->list, &huge_boot_pages); | 1462 | list_add(&m->list, &huge_boot_pages); |
1463 | m->hstate = h; | 1463 | m->hstate = h; |