summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/channel.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-01-05 04:01:34 +0000
committercg <cg@FreeBSD.org>2000-01-05 04:01:34 +0000
commit5cf59636dd5db7470e709027a977269a8b1d2213 (patch)
tree8b33805d604ab163e5bfb420f3de739f8964e558 /sys/dev/sound/pcm/channel.c
parent0710fece79cda2b25b170e7eee3b31964f09aa13 (diff)
downloadFreeBSD-src-5cf59636dd5db7470e709027a977269a8b1d2213.zip
FreeBSD-src-5cf59636dd5db7470e709027a977269a8b1d2213.tar.gz
argh, forgot the bus_dma_tag_creates.
also, panic if channel init fails instead of derefing null.
Diffstat (limited to 'sys/dev/sound/pcm/channel.c')
-rw-r--r--sys/dev/sound/pcm/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index dc63bd5..3f48edd 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -1021,6 +1021,7 @@ chn_init(pcm_channel *c, void *devinfo, int dir)
c->feeder = &feeder_root;
c->buffer.chan = -1;
c->devinfo = c->init(devinfo, &c->buffer, c, dir);
+ if (c->devinfo == NULL) panic("c->init() failed");
chn_setdir(c, dir);
/* And the secondary buffer. */
OpenPOWER on IntegriCloud