diff options
author | phk <phk@FreeBSD.org> | 2003-10-19 19:06:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-19 19:06:54 +0000 |
commit | b7c9250fa7b7753965f160c1e05ed1a7b6a99039 (patch) | |
tree | cee95886f1ee56a24ea084085966cedbc83c32ae /sys/geom/geom_dev.c | |
parent | 69b08878f3f1bc66e3ee61d143d258790f1f876a (diff) | |
download | FreeBSD-src-b7c9250fa7b7753965f160c1e05ed1a7b6a99039.zip FreeBSD-src-b7c9250fa7b7753965f160c1e05ed1a7b6a99039.tar.gz |
Remove KASSERT check for negative bio_offsets, add "normal" EIO
error return for same.
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 1965225..75d3084 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -386,9 +386,6 @@ g_dev_strategy(struct bio *bp) tsleep(&bp, PRIBIO, "gdstrat", hz / 10); } KASSERT(bp2 != NULL, ("XXX: ENOMEM in a bad place")); - KASSERT(bp2->bio_offset >= 0, - ("Negative bio_offset (%jd) on bio %p", - (intmax_t)bp2->bio_offset, bp)); bp2->bio_length = (off_t)bp->bio_bcount; bp2->bio_done = g_dev_done; g_trace(G_T_BIO, |