summaryrefslogtreecommitdiff
path: root/sys/scsi/st.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-09-16 15:54:53 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-09-16 15:54:53 +0000
commit52c7b51fae674542a0130bba617e7cc81e630dad (patch)
treedd85f5db0f2542ec7f8f156af79a2a2d619706de /sys/scsi/st.c
parent007a33d7522664110e715c0014fac49687ed7535 (diff)
A couple of obvious bzero() -> M_ZERO changes I missed.
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r--sys/scsi/st.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index f22849567a1..c64f4623cbe 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.75 2007/06/06 17:15:14 deraadt Exp $ */
+/* $OpenBSD: st.c,v 1.76 2007/09/16 15:54:52 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -1400,7 +1400,7 @@ st_mode_select(st, flags)
inbuf = malloc(sizeof(*inbuf), M_TEMP, M_NOWAIT);
if (inbuf == NULL)
return (ENOMEM);
- outbuf = malloc(sizeof(*outbuf), M_TEMP, M_NOWAIT);
+ outbuf = malloc(sizeof(*outbuf), M_TEMP, M_NOWAIT | M_ZERO);
if (outbuf == NULL) {
free(inbuf, M_TEMP);
return (ENOMEM);
@@ -1426,7 +1426,6 @@ st_mode_select(st, flags)
return (0);
}
- bzero(outbuf, sizeof(*outbuf));
bzero(&general, sizeof(general));
general.density = st->density;