fix a potential panic in dsp_clone() if no pcm devices were detected
This commit is contained in:
parent
fb6958b226
commit
5210620e98
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user