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
This commit is contained in:
kib 2008-09-20 19:56:02 +00:00
parent a127656dea
commit 2a1cba02c6

View File

@ -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 &&