projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5856d8b
)
ASoC: hdac_hda: call patch_ops.free() on probe error
author
Kai Vehmanen
<kai.vehmanen@linux.intel.com>
Fri, 17 Jul 2020 10:19:48 +0000
(13:19 +0300)
committer
Mark Brown
<broonie@kernel.org>
Wed, 22 Jul 2020 13:31:56 +0000
(14:31 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/hdac_hda.c
b/sound/soc/codecs/hdac_hda.c
index 473efe9ef998a71de37cc47b7593fd9a6be91c52..72bd779bf942f6925fcdb12369b471d5352b8c7c 100644
(file)
--- a/
sound/soc/codecs/hdac_hda.c
+++ b/
sound/soc/codecs/hdac_hda.c
@@
-467,7
+467,7
@@
static int hdac_hda_codec_probe(struct snd_soc_component *component)
ret = snd_hda_codec_parse_pcms(hcodec);
if (ret < 0) {
dev_err(&hdev->dev, "unable to map pcms to dai %d\n", ret);
- goto error_
regmap
;
+ goto error_
patch
;
}
/* HDMI controls need to be created in machine drivers */
@@
-476,7
+476,7
@@
static int hdac_hda_codec_probe(struct snd_soc_component *component)
if (ret < 0) {
dev_err(&hdev->dev, "unable to create controls %d\n",
ret);
- goto error_
regmap
;
+ goto error_
patch
;
}
}
@@
-496,6
+496,9
@@
static int hdac_hda_codec_probe(struct snd_soc_component *component)
return 0;
+error_patch:
+ if (hcodec->patch_ops.free)
+ hcodec->patch_ops.free(hcodec);
error_regmap:
snd_hdac_regmap_exit(hdev);
error_pm: