diff options
author | phk <phk@FreeBSD.org> | 2003-11-12 09:46:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-11-12 09:46:54 +0000 |
commit | 01e9462fd619e43eabc6291c9962bc3e83993598 (patch) | |
tree | af7fd35532b7fd97d32761a626bc048a6fd163e6 /sys/geom | |
parent | db4b02bf0aa3bdb9caa67ddea498039007f8ff02 (diff) | |
download | FreeBSD-src-01e9462fd619e43eabc6291c9962bc3e83993598.zip FreeBSD-src-01e9462fd619e43eabc6291c9962bc3e83993598.tar.gz |
Make sure to return errors if we have any.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_ccd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index ccb0368..86385bf 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -447,7 +447,7 @@ g_ccd_start(struct bio *bp) err = ccdbuffer(cbp, cs, bp, bn, addr, bcount); if (err) { bp->bio_completed += bcount; - if (bp->bio_error != 0) + if (bp->bio_error == 0) bp->bio_error = err; if (bp->bio_completed == bp->bio_length) g_io_deliver(bp, bp->bio_error); |