[PATCH v2] ASoC: dapm: Add a dummy snd_pcm_runtime to avoid NULL pointer access

2016-07-26 Thread Nicolin Chen
The SND_SOC_DAPM_PRE_PMU case would call startup()/hw_params() that might access substream->runtime through other functions. For example: Unable to handle kernel NULL pointer dereference at virtual address [] PC is at snd_pcm_hw_rule_add+0x24/0x1b0 LR is at

[PATCH v2] ASoC: dapm: Add a dummy snd_pcm_runtime to avoid NULL pointer access

2016-07-26 Thread Nicolin Chen
The SND_SOC_DAPM_PRE_PMU case would call startup()/hw_params() that might access substream->runtime through other functions. For example: Unable to handle kernel NULL pointer dereference at virtual address [] PC is at snd_pcm_hw_rule_add+0x24/0x1b0 LR is at