diff options
author | tmm <tmm@FreeBSD.org> | 2002-04-13 20:09:06 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-04-13 20:09:06 +0000 |
commit | a0622efd75342d0f7c0a4ed679401462cda6b42e (patch) | |
tree | 70408f371e1961c45ea45bc408d5fe0e966d7a08 /sys/kern/sys_pipe.c | |
parent | 49304db55852bc90e479a43967196c47376c37a9 (diff) | |
download | FreeBSD-src-a0622efd75342d0f7c0a4ed679401462cda6b42e.zip FreeBSD-src-a0622efd75342d0f7c0a4ed679401462cda6b42e.tar.gz |
Use pmap_extract() instead of pmap_kextract() to retrieve the physical
address associated with a user virtual address in
pipe_build_write_buffer().
Reviewed by: alc
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r-- | sys/kern/sys_pipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 8699ca2..c671c94 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -616,7 +616,8 @@ pipe_build_write_buffer(wpipe, uio) vm_page_t m; if (vm_fault_quick((caddr_t)addr, VM_PROT_READ) < 0 || - (paddr = pmap_kextract(addr)) == 0) { + (paddr = pmap_extract(vmspace_pmap(curproc->p_vmspace), + addr)) == 0) { int j; for (j = 0; j < i; j++) |