summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
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/macppc
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/macppc')
-rw-r--r--sys/arch/macppc/macppc/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/mem.c b/sys/arch/macppc/macppc/mem.c
index 53c6b0f99fb..8c6a07e5c1c 100644
--- a/sys/arch/macppc/macppc/mem.c
+++ b/sys/arch/macppc/macppc/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.15 2007/10/14 17:29:04 kettenis Exp $ */
+/* $OpenBSD: mem.c,v 1.16 2008/11/05 06:32:47 matthieu Exp $ */
/* $NetBSD: mem.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -222,7 +222,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;
}