pcm: add MMAP_EMUL to type names

If we try to print this then it causes a read past the end of the array
in snd_pcm_type_name().

From: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2010-11-23 13:40:25 +01:00
parent ade3efbd86
commit a4f71b1940

View file

@ -1633,6 +1633,7 @@ static const char *const snd_pcm_type_names[] = {
PCMTYPE(SOFTVOL), PCMTYPE(SOFTVOL),
PCMTYPE(IOPLUG), PCMTYPE(IOPLUG),
PCMTYPE(EXTPLUG), PCMTYPE(EXTPLUG),
PCMTYPE(MMAP_EMUL),
}; };
static const char *const snd_pcm_subformat_names[] = { static const char *const snd_pcm_subformat_names[] = {