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
77d7e3d53d
commit
f9661a05c5
@ -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…
x
Reference in New Issue
Block a user