From 2534d4fb826a2e20a81bd26e1012949ec8d9f5a5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 3 Dec 1996 08:08:01 +0000 Subject: clear sense buffer for mode sense 4, dms@celtech.com --- sys/scsi/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/scsi/sd.c') 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; -- cgit v1.2.3