summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/md/md.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 87576e7..edf2890 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -397,12 +397,7 @@ mdstart_vnode(struct md_s *sc)
}
VOP_UNLOCK(sc->vnode, 0, curproc);
bp->bio_resid = auio.uio_resid;
-
- if (error) {
- bp->bio_error = error;
- bp->bio_flags |= BIO_ERROR;
- }
- biofinish(bp, &sc->stats, 0);
+ biofinish(bp, &sc->stats, error);
}
return;
}
OpenPOWER on IntegriCloud