Fix mbuf_jumbo_alloc()

This commit is contained in:
Sebastian Huber 2016-11-10 14:58:58 +01:00
parent 7614758c11
commit c418b7a213

View File

@ -425,9 +425,9 @@ static void *
mbuf_jumbo_alloc(uma_zone_t zone, int bytes, uint8_t *flags, int wait)
{
#ifndef __rtems__
/* Inform UMA that this allocator uses kernel_map/object. */
*flags = UMA_SLAB_KERNEL;
#ifndef __rtems__
return ((void *)kmem_alloc_contig(kernel_map, bytes, wait,
(vm_paddr_t)0, ~(vm_paddr_t)0, 1, 0, VM_MEMATTR_DEFAULT));
#else /* __rtems__ */