summaryrefslogtreecommitdiff
path: root/sys/arch/arm
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/arm
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/arm')
-rw-r--r--sys/arch/arm/arm/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/mem.c b/sys/arch/arm/arm/mem.c
index 7c5ee6a6b0b..b93800399fc 100644
--- a/sys/arch/arm/arm/mem.c
+++ b/sys/arch/arm/arm/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.8 2008/05/04 09:57:46 martin Exp $ */
+/* $OpenBSD: mem.c,v 1.9 2008/11/05 06:32:47 matthieu Exp $ */
/* $NetBSD: mem.c,v 1.11 2003/10/16 12:02:58 jdolecek Exp $ */
/*
@@ -137,7 +137,7 @@ mmclose(dev, flag, mode, p)
{
#ifdef APERTURE
if (minor(dev) == 4)
- ap_open_count--;
+ ap_open_count = 0;
#endif
return (0);
}