diff options
author | hselasky <hselasky@FreeBSD.org> | 2017-01-09 17:16:14 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2017-01-09 17:16:14 +0000 |
commit | e3427410c930ca828acbe0e75737a99a4d304499 (patch) | |
tree | 76e6c1c5b63fa14e4eb4ca7b789075ada72850fb /sys/compat/linuxkpi | |
parent | 1bdb69a72291dd71e0f628a9fdb8716f3dc3a2d1 (diff) | |
download | FreeBSD-src-e3427410c930ca828acbe0e75737a99a4d304499.zip FreeBSD-src-e3427410c930ca828acbe0e75737a99a4d304499.tar.gz |
MFC r310557:
Use correct integer type when computing the maximum physical address
for kmem_alloc_contig().
Obtained from: kmacy @
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/compat/linuxkpi')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/gfp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h index e1f14b0..1c73022 100644 --- a/sys/compat/linuxkpi/common/include/linux/gfp.h +++ b/sys/compat/linuxkpi/common/include/linux/gfp.h @@ -136,8 +136,8 @@ alloc_pages(gfp_t gfp_mask, unsigned int order) size_t size; size = PAGE_SIZE << order; - page = kmem_alloc_contig(kmem_arena, size, gfp_mask, 0, -1, - size, 0, VM_MEMATTR_DEFAULT); + page = kmem_alloc_contig(kmem_arena, size, gfp_mask, + 0, ~(vm_paddr_t)0, size, 0, VM_MEMATTR_DEFAULT); if (page == 0) return (NULL); return (virt_to_page(page)); |