]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l73: Minor error paths fixups
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 10 May 2021 13:13:55 +0000 (14:13 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 16:27:53 +0000 (17:27 +0100)
commite3a1cbbc0581195ee14080743f7da1ac3b8fd814
treea6a6485986de07e168df0178dcbd52cbf3b1eb1e
parent2f821ac41df7ea020f6d9fc6a0ddf1f7988ec980
ASoC: cs42l73: 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-9-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l73.c