]> git.alsa-project.org Git - alsa-lib.git/commit
[ALSA-LIB] dmix: dont forget to return -EINVAL on errors
authorStas Sergeev <stsp@aknet.ru>
Wed, 15 Sep 2004 18:44:24 +0000 (18:44 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 15 Sep 2004 18:44:24 +0000 (18:44 +0000)
commit6f515096d918437eb21264e8c95dbe0ce3b59536
tree94b1597bccf0124317529b7d80f132d3c313cee3
parent8a42294dc4372f4062ea8942aa3fad4e6bf2063c
[ALSA-LIB] dmix: dont forget to return -EINVAL on errors

snd_pcm_dmix_open() returns success if the open fails attempting
to open not the HW plugin (dmix seems to be limited to use only
the HW plugin right now). This leads to memory corruptions and
eventually a SIGSEGV. The attached patch fixes the omission.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
src/pcm/pcm_dmix.c