summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/neomagic.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-04-01 22:24:03 +0000
committercg <cg@FreeBSD.org>2000-04-01 22:24:03 +0000
commita3c065ea56199480229fabf9848000c6be8ce2d9 (patch)
tree1a0c857b5ff57f71804e91ab4b0bb5105cd499d1 /sys/dev/sound/pci/neomagic.c
parent5bcbc0e18f73a09f1d42126e5f6baa130f605ec9 (diff)
downloadFreeBSD-src-a3c065ea56199480229fabf9848000c6be8ce2d9.zip
FreeBSD-src-a3c065ea56199480229fabf9848000c6be8ce2d9.tar.gz
fail in attach if we seem to have no ac97 codec
Diffstat (limited to 'sys/dev/sound/pci/neomagic.c')
-rw-r--r--sys/dev/sound/pci/neomagic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/neomagic.c b/sys/dev/sound/pci/neomagic.c
index 9661e65..8c43d6b 100644
--- a/sys/dev/sound/pci/neomagic.c
+++ b/sys/dev/sound/pci/neomagic.c
@@ -625,7 +625,7 @@ nm_pci_attach(device_t dev)
codec = ac97_create(dev, sc, nm_initcd, nm_rdcd, nm_wrcd);
if (codec == NULL) goto bad;
- mixer_init(d, &ac97_mixer, codec);
+ if (mixer_init(d, &ac97_mixer, codec) == -1) goto bad;
sc->irqid = 0;
sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irqid,
OpenPOWER on IntegriCloud