]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: lpass-platform: fix uninitialized variable
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 14 Nov 2016 17:46:08 +0000 (09:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 14 Nov 2016 17:46:08 +0000 (09:46 -0800)
commit0af1df5ea0f44ab6ef5463d67e5a603e8f481aad
treee125c1155d5c602a816856f38a6a9b6665714be3
parentd781c3b32cd1a731e22c117851d5d066e4058271
ASoC: lpass-platform: fix uninitialized variable

In commit 50980eeb4eef ("ASoC: lpass-platform: Fix broken pcm data
usage") the stream specific information initialization was broken, with
the dma channel information not being initialized if there was no
alloc_dma_channel() helper function.

Before that, the DMA channel number was implicitly initialized to zero
because the backing store was allocated with devm_kzalloc().  When the
init code was rewritten, that implicit initialization was lost, and gcc
rightfully complains about an uninitialized variable being used.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
sound/soc/qcom/lpass-platform.c