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

Commit 35810410 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 758edf02 4b19912e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -916,6 +916,12 @@ static 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;
	}

	lockdep_assert_held(&client_mutex);

	list_for_each_entry(component, &component_list, list) {