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

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

Merge "Asoc: msm: Null dereference check added"

parents 60066b7b 066f4a30
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3753,6 +3753,11 @@ int q6asm_read(struct audio_client *ac)
		mutex_lock(&port->lock);

		dsp_buf = port->dsp_buf;
		if (port->buf == NULL) {
			pr_err("%s buf is NULL\n", __func__);
			mutex_unlock(&port->lock);
			return -EINVAL;
		}
		ab = &port->buf[dsp_buf];

		pr_debug("%s:session[%d]dsp-buf[%d][%p]cpu_buf[%d][%pa]\n",