fix typoe; thanks ober
This commit is contained in:
parent
9778bb7296
commit
290bf1e3e7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.23 2006/07/23 22:06:06 ad Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.24 2006/07/25 18:14:20 elad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.23 2006/07/23 22:06:06 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.24 2006/07/25 18:14:20 elad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
@ -167,7 +167,7 @@ mmmmap(dev_t dev, off_t off, int prot)
|
||||
if (minor(dev) != DEV_MEM)
|
||||
return (-1);
|
||||
|
||||
if (atop(off) >= physmem && kauth_authorize_generic(l-l_cred,
|
||||
if (atop(off) >= physmem && kauth_authorize_generic(l->l_cred,
|
||||
KAUTH_GENERIC_ISSUSER, &l->l_acflag) != 0)
|
||||
return (-1);
|
||||
return (trunc_page((paddr_t)off));
|
||||
|
Loading…
Reference in New Issue
Block a user