]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fix config error path
authorLu Guanqun <guanqun.lu@intel.com>
Wed, 6 Apr 2011 15:25:21 +0000 (23:25 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Apr 2011 23:25:45 +0000 (08:25 +0900)
commitc613d15758d253f7ded3bc02107e59d38bb812fd
tree7f669318d162188d6252a7030d073ad4566d35c3
parent9cd50ede62ed34782413fe9f7b76478c0056351c
ASoC: fix config error path

initialize ret to invalid value so that when we reach the config error path in
soc_pcm_open, it will return the correct error code. without this patch, though
config error path is executed, soc_pcm_open will return 0 in
snd_pcm_open_substream and then cause double release of substream.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c