summaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2012-07-18 18:10:27 +0000
committerSean Bruno <sbruno@FreeBSD.org>2012-07-18 18:10:27 +0000
commitce61627a2df41252caced6735dcec39936de9396 (patch)
tree11de2147de4f87f3659cfaf4b0e03602825af161 /sys/dev/aac
parent0c19b5de29d19bb39bae275368269bbfc7ad1761 (diff)
downloadsrc-test2-ce61627a2df41252caced6735dcec39936de9396.tar.gz
src-test2-ce61627a2df41252caced6735dcec39936de9396.zip
Notes
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac_disk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/aac/aac_disk.c b/sys/dev/aac/aac_disk.c
index e4042f72fc04..f2f66361393c 100644
--- a/sys/dev/aac/aac_disk.c
+++ b/sys/dev/aac/aac_disk.c
@@ -334,8 +334,10 @@ aac_biodone(struct bio *bp)
{
fwprintf(NULL, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "");
- if (bp->bio_flags & BIO_ERROR)
+ if (bp->bio_flags & BIO_ERROR) {
+ bp->bio_resid = bp->bio_bcount;
disk_err(bp, "hard error", -1, 1);
+ }
biodone(bp);
}