mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
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:
parent
10038699fb
commit
247602e3ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252424
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user