diff options
Diffstat (limited to 'sys/dev/sound/pci/es137x.c')
-rw-r--r-- | sys/dev/sound/pci/es137x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c index 02b1931..ca2fa0c 100644 --- a/sys/dev/sound/pci/es137x.c +++ b/sys/dev/sound/pci/es137x.c @@ -818,11 +818,10 @@ es_pci_attach(device_t dev) struct ac97_info *codec = 0; kobj_class_t ct = NULL; - if ((es = malloc(sizeof *es, M_DEVBUF, M_NOWAIT)) == NULL) { + if ((es = malloc(sizeof *es, M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL) { device_printf(dev, "cannot allocate softc\n"); return ENXIO; } - bzero(es, sizeof *es); es->dev = dev; mapped = 0; |