diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-03 08:08:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-03 08:08:01 +0000 |
commit | 2534d4fb826a2e20a81bd26e1012949ec8d9f5a5 (patch) | |
tree | b83906e8ca0090764c4b36b20f1763dc7fbd0aa4 /sys/scsi/sd.c | |
parent | 04492d984a83faf6c631c9031b6fc2880794beff (diff) |
clear sense buffer for mode sense 4, dms@celtech.com
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 776a97779f4..b1b9515f6bc 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.19 1996/10/31 01:09:25 niklas Exp $ */ +/* $OpenBSD: sd.c,v 1.20 1996/12/03 08:08:00 deraadt Exp $ */ /* $NetBSD: sd.c,v 1.100.4.1 1996/06/04 23:14:08 thorpej Exp $ */ /* @@ -866,6 +866,7 @@ sd_get_parms(sd, flags) /* * do a "mode sense page 4" */ + bzero(&scsi_sense, sizeof(scsi_sense)); bzero(&scsi_cmd, sizeof(scsi_cmd)); scsi_cmd.opcode = MODE_SENSE; scsi_cmd.page = 4; |