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

Commit 08723c7f 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-cpe-lsm: Fix out of memory on buffer allocation"

parents da830b29 bf193630
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -424,6 +424,14 @@ static int msm_cpe_lab_buf_alloc(struct snd_pcm_substream *substream,
	u32 count = 0;
	u32 bufsz, bufcnt;

	if (lab_d->pcm_buf &&
	    lab_d->pcm_buf->mem) {
		dev_dbg(rtd->dev,
			"%s: LAB buf already allocated\n",
			__func__);
		goto exit;
	}

	bufsz = hw_params->buf_sz;
	bufcnt = hw_params->period_count;