From be7695cf650f80ec23b9edc46329044816ddfa51 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sun, 18 Jul 2004 06:54:29 +0000 Subject: [PATCH] Fix exclusive-bit leakage. --- sys/geom/concat/g_concat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c index 9dd8bff71842..323484cb0dd1 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;