summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1999-05-11 23:52:48 +0000
committerkstailey <kstailey@cvs.openbsd.org>1999-05-11 23:52:48 +0000
commitcf73ad57310e8005431dd2f4343da4edccd1ebf6 (patch)
tree3b60d79644d7e3ee72a84561806591739de6d490 /sys
parent61506b46c04def74c126940a5a8d74abb5afbd07 (diff)
set window descriptor length to actual amount of data
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/ss.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c
index f12dd9eaa7f..01fe3c4315d 100644
--- a/sys/scsi/ss.c
+++ b/sys/scsi/ss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss.c,v 1.38 1999/05/11 23:41:37 kstailey Exp $ */
+/* $OpenBSD: ss.c,v 1.39 1999/05/11 23:52:47 kstailey Exp $ */
/* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */
/*
@@ -850,7 +850,9 @@ ss_set_window(ss, sio)
return (scsi_scsi_cmd(sc_link,
(struct scsi_generic *)&window_cmd,
sizeof(window_cmd), (u_char *) &wd.window_data,
- sizeof(wd.window_data), 4, 5000, NULL, SCSI_DATA_OUT));
+ (ss->quirkdata->quirks & SS_Q_WINDOW_DESC_LEN) ?
+ ss->quirkdata->window_descriptor_length : 40,
+ 4, 5000, NULL, SCSI_DATA_OUT));
}
int