diff options
author | phk <phk@FreeBSD.org> | 2004-01-09 16:10:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-01-09 16:10:32 +0000 |
commit | cce48275690715c8d64e7f7c6c6ab3d7e2877a75 (patch) | |
tree | b0b3bdc3ee3787441012232c55a51520072e370b /sys/geom | |
parent | d71e3ae2806ab59d16b0ef434f787cf87633d1f6 (diff) | |
download | FreeBSD-src-cce48275690715c8d64e7f7c6c6ab3d7e2877a75.zip FreeBSD-src-cce48275690715c8d64e7f7c6c6ab3d7e2877a75.tar.gz |
KASSERT against no-op access requests.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_subr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 995c113..b4b0527 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -581,6 +581,7 @@ g_access_rel(struct g_consumer *cp, int dcr, int dcw, int dce) KASSERT(cp->acr + dcr >= 0, ("access resulting in negative acr")); KASSERT(cp->acw + dcw >= 0, ("access resulting in negative acw")); KASSERT(cp->ace + dce >= 0, ("access resulting in negative ace")); + KASSERT(dcr != 0 || dcw != 0 || dce != 0, ("NOP access request")); KASSERT(pp->geom->access != NULL, ("NULL geom->access")); /* |