summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/maestro.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pci/maestro.c')
-rw-r--r--sys/dev/sound/pci/maestro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/maestro.c b/sys/dev/sound/pci/maestro.c
index c93060f..140d6c9 100644
--- a/sys/dev/sound/pci/maestro.c
+++ b/sys/dev/sound/pci/maestro.c
@@ -956,11 +956,10 @@ agg_attach(device_t dev)
void *ih = NULL;
char status[SND_STATUSLEN];
- if ((ess = malloc(sizeof *ess, M_DEVBUF, M_NOWAIT)) == NULL) {
+ if ((ess = malloc(sizeof *ess, M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL) {
device_printf(dev, "cannot allocate softc\n");
return ENXIO;
}
- bzero(ess, sizeof *ess);
ess->dev = dev;
if (bus_dma_tag_create(/*parent*/NULL,
OpenPOWER on IntegriCloud