mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use kern_mincore() helper instead of abusing syscall entry.
Suggested by: kib@ Reviewed by: kib@ MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D10143
This commit is contained in:
parent
46dc8e9d6a
commit
faa9679e24
1 changed files with 1 additions and 5 deletions
|
|
@ -2538,13 +2538,9 @@ linux_getrandom(struct thread *td, struct linux_getrandom_args *args)
|
|||
int
|
||||
linux_mincore(struct thread *td, struct linux_mincore_args *args)
|
||||
{
|
||||
struct mincore_args bsd_args;
|
||||
|
||||
/* Needs to be page-aligned */
|
||||
if (args->start & PAGE_MASK)
|
||||
return (EINVAL);
|
||||
bsd_args.addr = PTRIN(args->start);
|
||||
bsd_args.len = args->len;
|
||||
bsd_args.vec = args->vec;
|
||||
return (sys_mincore(td, &bsd_args));
|
||||
return (kern_mincore(td, args->start, args->len, args->vec));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue