make sure that the size we pass to uvm_map() is a multiple of PAGESIZE.
this should fix PR 10175 and prevent the panic of PR 10079.
This commit is contained in:
parent
e72214422a
commit
ded9898d88
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: exec_subr.c,v 1.17 1999/07/07 20:23:45 ws Exp $ */
|
||||
/* $NetBSD: exec_subr.c,v 1.18 2000/06/13 04:25:31 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
|
||||
|
@ -161,6 +161,8 @@ vmcmd_map_pagedvn(p, cmd)
|
|||
return(EINVAL);
|
||||
if (cmd->ev_addr & PAGE_MASK)
|
||||
return(EINVAL);
|
||||
if (cmd->ev_len & PAGE_MASK)
|
||||
return(EINVAL);
|
||||
|
||||
/*
|
||||
* first, attach to the object
|
||||
|
|
Loading…
Reference in New Issue