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

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

Merge "ASoC: core: Fix possible NULL pointer de-reference"

parents 109840a3 d7eb26aa
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -879,6 +879,12 @@ struct snd_soc_component *soc_find_component(
{
	struct snd_soc_component *component;

	if (!of_node && !name) {
		pr_err("%s: Either of_node or name must be valid\n",
			__func__);
		return NULL;
	}

	list_for_each_entry(component, &component_list, list) {
		if (of_node) {
			if (component->dev->of_node == of_node)