summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-11-05 06:32:48 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-11-05 06:32:48 +0000
commit119c9ee39a6e0e8aa76720d500c666eb4f4dad77 (patch)
tree811ec26bd2b1c5c21f37909160082022f6831546 /sys/arch/i386
parentedf003c75120e2d05055e5046060d2a25619bb08 (diff)
since mmclose() is only called once for the final close,
set ap_open_count = 0 in mmclose() instread of decrementing it. ok miod@, oga@.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/mem.c b/sys/arch/i386/i386/mem.c
index 86fb86aa2f4..6c94688c0c0 100644
--- a/sys/arch/i386/i386/mem.c
+++ b/sys/arch/i386/i386/mem.c
@@ -1,5 +1,5 @@
/* $NetBSD: mem.c,v 1.31 1996/05/03 19:42:19 christos Exp $ */
-/* $OpenBSD: mem.c,v 1.34 2007/09/07 15:00:19 art Exp $ */
+/* $OpenBSD: mem.c,v 1.35 2008/11/05 06:32:47 matthieu Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1982, 1986, 1990, 1993
@@ -108,7 +108,7 @@ mmclose(dev_t dev, int flag, int mode, struct proc *p)
{
#ifdef APERTURE
if (minor(dev) == 4)
- ap_open_count--;
+ ap_open_count = 0;
#endif
return (0);
}