]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs35l35: Minor error paths fixups
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 10 May 2021 13:13:52 +0000 (14:13 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 16:27:50 +0000 (17:27 +0100)
commit60ba916d87600684a1e127b484e1c407c355caad
tree27a5203c7908a677c21c6e00ed7cea00c03247da
parent8cb9b001635cfa0389ec54eb511cb459968ad1d7
ASoC: cs35l35: Minor error paths fixups

Correct some unchecked re-allocations of ret whilst reading the device
ID and ensure the hardware state is returned to off on the error
paths.

Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210510131357.17170-6-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l35.c