summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-14 08:08:17 +0000
committerphk <phk@FreeBSD.org>2003-04-14 08:08:17 +0000
commite27444e9974c97118445b1fef7aa490c2f53841c (patch)
treed0215edc86a4b1dc11c0f199fbdaefe049e8dd94 /sys/geom/geom_ccd.c
parent1287890a35451e557da22133bd484fb13bfda696 (diff)
downloadFreeBSD-src-e27444e9974c97118445b1fef7aa490c2f53841c.zip
FreeBSD-src-e27444e9974c97118445b1fef7aa490c2f53841c.tar.gz
Call biofinish() also when we get a malloc() failure.
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index f56a256..7dd43f9 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -578,10 +578,7 @@ ccdstart(struct ccd_s *cs, struct bio *bp)
err = ccdbuffer(cbp, cs, bp, bn, addr, bcount);
if (err) {
printf("ccdbuffer error %d\n", err);
- /* We're screwed */
- bp->bio_resid -= bcount;
- bp->bio_error = ENOMEM;
- bp->bio_flags |= BIO_ERROR;
+ biofinish(bp, NULL, err);
return;
}
rcount = cbp[0]->cb_buf.bio_bcount;
OpenPOWER on IntegriCloud