Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 723a62be authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: codecs: check component pointer before use"

parents 8ff0eb72 fca01335
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -544,6 +544,11 @@ static int swr_dmic_probe(struct swr_device *pdev)

	component = snd_soc_lookup_component(&pdev->dev,
						swr_dmic->driver->name);
	if (!component) {
		dev_err(&pdev->dev, "%s: could not find swr_dmic component\n",
			__func__);
		goto dev_err;
	}
	swr_dmic->component = component;
	prefix_name = devm_kzalloc(&pdev->dev,
					strlen(swr_dmic_name_prefix_of) + 1,