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:
parent
a127656dea
commit
2a1cba02c6
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user