fix a potential panic in dsp_clone() if no pcm devices were detected

This commit is contained in:
Cameron Grant 2001-06-17 20:15:29 +00:00
parent fb6958b226
commit 5210620e98

View File

@ -998,6 +998,8 @@ dsp_clone(void *arg, char *name, int namelen, dev_t *dev)
if (*dev != NODEV)
return;
if (pcm_devclass == NULL)
return;
unit = -1;
devtype = SND_DEV_DSP;