Re: [PATCH v4] ALSA: ASoC: soc-compress.c: fix NULL dereference

2015-01-15 Thread Mark Brown
On Wed, Jan 14, 2015 at 08:47:29AM +, Qais Yousef wrote: > In soc_new_compress() when rtd->dai_link->dynamic is set, we create the pcm > substreams with this call: Applied, thanks. signature.asc Description: Digital signature

[PATCH v4] ALSA: ASoC: soc-compress.c: fix NULL dereference

2015-01-14 Thread Qais Yousef
In soc_new_compress() when rtd->dai_link->dynamic is set, we create the pcm substreams with this call: ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, 1, 0, &be_pcm); which passes 0 as capture_count leading to be_pcm->streams[SNDRV_PCM_STRE