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

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

Merge "ASoC: lsm-client: Fix null pointer access when no LSM session"

parents ee807353 8ddf0544
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1724,6 +1724,10 @@ static int msm_lsm_close(struct snd_pcm_substream *substream)
		pr_err("%s: Invalid private_data", __func__);
		return -EINVAL;
	}
	if (!prtd || !prtd->lsm_client) {
		pr_err("%s: No LSM session active\n", __func__);
		return -EINVAL;
	}
	rtd = substream->private_data;

	dev_dbg(rtd->dev, "%s\n", __func__);