diff options
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r-- | sys/dev/sound/pcm/dsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index 1bff663..91fbb6d 100644 --- a/sys/dev/sound/pcm/dsp.c +++ b/sys/dev/sound/pcm/dsp.c @@ -1093,6 +1093,9 @@ dsp_clone(void *arg, char *name, int namelen, dev_t *dev) pcm_dev = devclass_get_softc(pcm_devclass, unit); + if (pcm_dev == NULL) + return; + SLIST_FOREACH(pcm_chan, &pcm_dev->channels, link) { switch(devtype) { |