In generic_bs_map(), use kmem_alloc_nofault() instead of kmem_alloc(), as we

only need virtual addresses.

Submitted by:	alc
This commit is contained in:
cognet 2013-06-30 19:36:17 +00:00
parent 2009e3adc3
commit 621a198443

View File

@ -73,7 +73,7 @@ generic_bs_map(void *t, bus_addr_t bpa, bus_size_t size, int flags,
offset = bpa & PAGE_MASK;
startpa = trunc_page(bpa);
va = kmem_alloc(kernel_map, endpa - startpa);
va = kmem_alloc_nofault(kernel_map, endpa - startpa);
if (va == 0)
return (ENOMEM);