OSDN Git Service

ASoC: cs42l42: Minor error paths fixups
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 10 May 2021 13:13:54 +0000 (14:13 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 16:27:52 +0000 (17:27 +0100)
commit0a0eb567e1d43cb87e9740c8e417d6fcff061582
treefbb45dd61390a05c281ca5c9ce280b3332e07ec5
parent1a46b7b82df57b6b6a4e891cdbb2de1cf818a43b
ASoC: cs42l42: 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-8-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c