Index: geom_io.c =================================================================== RCS file: /private/FreeBSD/src/sys/geom/geom_io.c,v retrieving revision 1.53 diff -u -p -r1.53 geom_io.c --- geom_io.c 11 Feb 2004 18:21:32 -0000 1.53 +++ geom_io.c 2 Apr 2004 09:43:11 -0000 @@ -279,6 +279,8 @@ g_io_deliver(struct bio *bp, int error) } KASSERT(cp != NULL, ("NULL bio_from in g_io_deliver")); KASSERT(cp->geom != NULL, ("NULL bio_from->geom in g_io_deliver")); + KASSERT(bp->bio_completed <= bp->bio_length, + ("bio_completed can't be greater than bio_length")); g_trace(G_T_BIO, "g_io_deliver(%p) from %p(%s) to %p(%s) cmd %d error %d off %jd len %jd",