summaryrefslogtreecommitdiff
path: root/sys/dev/ic/aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/aac.c')
-rw-r--r--sys/dev/ic/aac.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c
index d5f83b5b54c..27b1b644ac9 100644
--- a/sys/dev/ic/aac.c
+++ b/sys/dev/ic/aac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aac.c,v 1.20 2005/05/26 23:53:14 martin Exp $ */
+/* $OpenBSD: aac.c,v 1.21 2005/07/03 22:31:27 krw Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
@@ -868,8 +868,9 @@ aac_internal_cache_cmd(xs)
case 4:
/* scsi_disk.h says this should be 0x16 */
mpd.dp.rigid_geometry.pg_length = 0x16;
- mpd.hd.data_length = sizeof mpd.hd + sizeof mpd.bd +
- mpd.dp.rigid_geometry.pg_length;
+ mpd.hd.data_length = sizeof mpd.hd -
+ sizeof mpd.hd.data_length + sizeof mpd.bd +
+ sizeof mpd.dp.rigid_geometry;
mpd.hd.blk_desc_len = sizeof mpd.bd;
/* XXX */