summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-03-01 18:12:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-03-01 18:12:05 +0000
commit035a95645e9c40f085cfc15838ec3ab36b18cd44 (patch)
tree99823fd9f9d2acb81c5de9290db19a5c9ebdbf42 /sys/scsi/scsi_base.c
parent24d1ca5a1cbac141ec89b8d8e788cec58e1fa0fd (diff)
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
Diffstat (limited to 'sys/scsi/scsi_base.c')
-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