pipe_build_write_buffer() only requires read access of the page that it

obtains from pmap_extract_and_hold().
This commit is contained in:
Alan Cox 2003-09-12 07:13:15 +00:00
parent b9850eb224
commit 27d203eab3

View File

@ -668,7 +668,8 @@ pipe_build_write_buffer(wpipe, uio)
vm_page_unlock_queues();
return (EFAULT);
}
wpipe->pipe_map.ms[i] = pmap_extract_and_hold(pmap, addr);
wpipe->pipe_map.ms[i] = pmap_extract_and_hold(pmap, addr,
VM_PROT_READ);
if (wpipe->pipe_map.ms[i] == NULL)
goto race;
}