ASoC: hdac_hda: call patch_ops.free() on probe error
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 17 Jul 2020 10:19:48 +0000 (13:19 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jul 2020 13:31:56 +0000 (14:31 +0100)
commit640f835cd052bba403f955db15130ff813be78d2
tree395ef18e8a07964b4d7f7e452169a5d98c023082
parent5856d8bd308f9467cefa65d04e184a56a3977559
ASoC: hdac_hda: call patch_ops.free() on probe error

Add error handling for patch_ops in hdac_hda_codec_probe().

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200717101950.3885187-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hda.c