summaryrefslogtreecommitdiff
path: root/sys/pci/simos.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
commit7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch)
treec383ffd6da8fbab2789828310191f8717f675124 /sys/pci/simos.c
parentb1f3daafde37fa36b819c0649c121d98175a6a2d (diff)
Notes
Diffstat (limited to 'sys/pci/simos.c')
-rw-r--r--sys/pci/simos.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/simos.c b/sys/pci/simos.c
index 413f7d777535..bf12f5a0533c 100644
--- a/sys/pci/simos.c
+++ b/sys/pci/simos.c
@@ -107,9 +107,8 @@ simos_attach(pcici_t config_id, int unit)
struct simos_softc* sc;
struct cam_devq *devq;
- sc = malloc(sizeof(struct simos_softc), M_DEVBUF, M_WAITOK);
+ sc = malloc(sizeof(struct simos_softc), M_DEVBUF, M_WAITOK | M_ZERO);
simosp[unit] = sc;
- bzero(sc, sizeof *sc);
sc->sc_unit = unit;
sc->sc_regs = (SimOS_SCSI*) SIMOS_SCSI_ADDR;