svn commit: r311800 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Jan 9 17:16:17 UTC 2017
Author: hselasky
Date: Mon Jan 9 17:16:14 2017
New Revision: 311800
URL: https://svnweb.freebsd.org/changeset/base/311800
Log:
MFC r310557:
Use correct integer type when computing the maximum physical address
for kmem_alloc_contig().
Obtained from: kmacy @
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/compat/linuxkpi/common/include/linux/gfp.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linuxkpi/common/include/linux/gfp.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/gfp.h Mon Jan 9 17:13:35 2017 (r311799)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/gfp.h Mon Jan 9 17:16:14 2017 (r311800)
@@ -136,8 +136,8 @@ alloc_pages(gfp_t gfp_mask, unsigned int
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));
More information about the svn-src-stable
mailing list