summaryrefslogtreecommitdiff
path: root/sys/scsi/scsiconf.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/scsiconf.c
parent007a33d7522664110e715c0014fac49687ed7535 (diff)
A couple of obvious bzero() -> M_ZERO changes I missed.
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r--sys/scsi/scsiconf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 342899737aa..a32a29ec168 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.125 2007/05/08 18:50:39 deraadt Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.126 2007/09/16 15:54:52 krw Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -168,10 +168,9 @@ scsibusattach(struct device *parent, struct device *self, void *aux)
panic("scsibusattach: can't allocate target links");
nbytes = sb->adapter_link->luns * sizeof(struct scsi_link *);
for (i = 0; i < sb->sc_buswidth; i++) {
- sb->sc_link[i] = malloc(nbytes, M_DEVBUF, M_NOWAIT);
+ sb->sc_link[i] = malloc(nbytes, M_DEVBUF, M_NOWAIT | M_ZERO);
if (sb->sc_link[i] == NULL)
panic("scsibusattach: can't allocate lun links");
- bzero(sb->sc_link[i], nbytes);
}
#if NBIO > 0