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

Commit c67f84f6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm8996: check null pointer of match"

parents b9b3ab33 1aaf200b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3594,6 +3594,12 @@ static int msm8996_asoc_machine_probe(struct platform_device *pdev)

	match = of_match_node(msm8996_asoc_machine_of_match,
			pdev->dev.of_node);
	if (!match) {
		dev_err(&pdev->dev, "%s: no matched codec is found.\n",
			__func__);
		goto err;
	}

	if (!strcmp(match->data, "tomtom_codec"))
		mclk_freq_prop_name = "qcom,tomtom-mclk-clk-freq";
	else