summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-03-01 18:12:04 +0000
committermillert <millert@openbsd.org>2000-03-01 18:12:04 +0000
commit00b147a81caecd575ad6e88519c568e235078e22 (patch)
tree065f1b6147cc5aa7247e44ead9ca3a5693093006
parentVarious cleanups. (diff)
downloadwireguard-openbsd-00b147a81caecd575ad6e88519c568e235078e22.tar.xz
wireguard-openbsd-00b147a81caecd575ad6e88519c568e235078e22.zip
Initialize xs->req_sense_length to 0. This is not used by many
scsi drivers, other than dev/pci/ncr.c, but if req_sense_length is not zero (either explicitly or through chance) the ncr driver will fail during initialization. This fixes the occasionaly ncr driver init problems; thorpej@netbsd.org
-rw-r--r--sys/scsi/scsi_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 7c87c282b5e..e2870871413 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.25 1999/07/25 07:09:19 csapuntz Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.26 2000/03/01 18:12:04 millert Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -174,6 +174,7 @@ scsi_make_xs(sc_link, scsi_cmd, cmdlen, data_addr, datalen,
xs->retries = retries;
xs->timeout = timeout;
xs->bp = bp;
+ xs->req_sense_length = 0; /* XXX - not used by scsi internals */
/*
* Set the LUN in the CDB. This may only be needed if we have an