diff options
author | kib <kib@FreeBSD.org> | 2008-09-20 19:56:02 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-20 19:56:02 +0000 |
commit | 2a1cba02c61cd87f5c5ce6c661288e2f98e93d52 (patch) | |
tree | d975530478dd6bb94e4afac89ef8f90a1d8fc2a8 | |
parent | a127656dea4eaa9f2125b73268a5749b25cbbbbd (diff) | |
download | FreeBSD-src-2a1cba02c61cd87f5c5ce6c661288e2f98e93d52.zip FreeBSD-src-2a1cba02c61cd87f5c5ce6c661288e2f98e93d52.tar.gz |
Allow the d_mmap driver methods to use cdevpriv KPI during verification
phase of establishing mapping.
Discussed with: rwatson, jhb, rnoland
Tested by: rnoland
MFC after: 3 days
-rw-r--r-- | sys/vm/vm_mmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 7e6b04f..c3f08b0 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -391,8 +391,10 @@ map: goto done; } + td->td_fpop = fp; error = vm_mmap(&vms->vm_map, &addr, size, prot, maxprot, flags, handle_type, handle, pos); + td->td_fpop = NULL; #ifdef HWPMC_HOOKS /* inform hwpmc(4) if an executable is being mapped */ if (error == 0 && handle_type == OBJT_VNODE && |