Skip to content

Commit

Permalink
xnu-4570.31.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwin authored and das committed Dec 10, 2018
1 parent 3d335d2 commit e7af56a
Show file tree
Hide file tree
Showing 215 changed files with 9,853 additions and 2,446 deletions.
4 changes: 2 additions & 2 deletions bsd/kern/bsd_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ kmem_mb_alloc(vm_map_t mbmap, int size, int physContig, kern_return_t *err)
kern_return_t kr = KERN_SUCCESS;

if (!physContig)
kr = kernel_memory_allocate(mbmap, &addr, size, 0, KMA_NOPAGEWAIT | KMA_KOBJECT | KMA_LOMEM, VM_KERN_MEMORY_MBUF);
kr = kernel_memory_allocate(mbmap, &addr, size, 0, KMA_KOBJECT | KMA_LOMEM, VM_KERN_MEMORY_MBUF);
else
kr = kmem_alloc_contig(mbmap, &addr, size, PAGE_MASK, 0xfffff, 0, KMA_NOPAGEWAIT | KMA_KOBJECT | KMA_LOMEM, VM_KERN_MEMORY_MBUF);
kr = kmem_alloc_contig(mbmap, &addr, size, PAGE_MASK, 0xfffff, 0, KMA_KOBJECT | KMA_LOMEM, VM_KERN_MEMORY_MBUF);

if (kr != KERN_SUCCESS)
addr = 0;
Expand Down
Loading

0 comments on commit e7af56a

Please sign in to comment.