summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-07-18 06:54:29 +0000
committerpjd <pjd@FreeBSD.org>2004-07-18 06:54:29 +0000
commita2b179fee8badfb629daa2ca3c2e64917675dd95 (patch)
tree6f1458090b0ac08372a3c85c94a6084fa946beb4
parentee034a6c189a16d4c3b6b65ea809eb3811c121e3 (diff)
downloadFreeBSD-src-a2b179fee8badfb629daa2ca3c2e64917675dd95.zip
FreeBSD-src-a2b179fee8badfb629daa2ca3c2e64917675dd95.tar.gz
Fix exclusive-bit leakage.
-rw-r--r--sys/geom/concat/g_concat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c
index 9dd8bff..323484c 100644
--- a/sys/geom/concat/g_concat.c
+++ b/sys/geom/concat/g_concat.c
@@ -186,7 +186,7 @@ g_concat_access(struct g_provider *pp, int dr, int dw, int de)
if (pp->acr == 0 && pp->acw == 0 && pp->ace == 0)
de++;
/* ... and let go of it on last close */
- if ((pp->acr + dr) == 0 && (pp->acw + dw) == 0 && (pp->ace + de) == 1)
+ if ((pp->acr + dr) == 0 && (pp->acw + dw) == 0 && (pp->ace + de) == 0)
de--;
error = ENXIO;
OpenPOWER on IntegriCloud