Use correct integer type when computing the maximum physical address
for kmem_alloc_contig(). Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
06dc0ff5b8
commit
a1410999f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310557
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user