Fix a panic in dsp_clone when trying to access a sound
device that doesn't exists. I'm using my discretion and committing without mentor approval since Seigo is away. Noticed by: Maxime Henrion <mux@freebsd.org>
This commit is contained in:
parent
eb51389e94
commit
507ddae3aa
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user