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

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

Merge "ASoC: wcd9306: fix the NULL pointer dereference in the tapan codec"

parents 949bbc90 1602c69b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4182,6 +4182,12 @@ static int tapan_codec_enable_slimrx(struct snd_soc_dapm_widget *w,

	core = dev_get_drvdata(codec->dev->parent);

	if (core == NULL) {
		dev_err(codec->dev, "%s: core is null\n",
				__func__);
		return -EINVAL;
	}

	dev_dbg(codec->dev, "%s: event called! codec name %s\n",
		__func__, w->codec->name);
	dev_dbg(codec->dev, "%s: num_dai %d stream name %s event %d\n",