summaryrefslogtreecommitdiff
path: root/sound/hda/codecs/side-codecs/hda_component.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/hda/codecs/side-codecs/hda_component.c')
-rw-r--r--sound/hda/codecs/side-codecs/hda_component.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/hda/codecs/side-codecs/hda_component.c b/sound/hda/codecs/side-codecs/hda_component.c
index bcf47a301697..8a2a200600a7 100644
--- a/sound/hda/codecs/side-codecs/hda_component.c
+++ b/sound/hda/codecs/side-codecs/hda_component.c
@@ -174,6 +174,10 @@ int hda_component_manager_init(struct hda_codec *cdc,
sm->match_str = match_str;
sm->index = i;
component_match_add(dev, &match, hda_comp_match_dev_name, sm);
+ if (IS_ERR(match)) {
+ codec_err(cdc, "Fail to add component %ld\n", PTR_ERR(match));
+ return PTR_ERR(match);
+ }
}
ret = component_master_add_with_match(dev, ops, match);