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

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

Merge "ASoC: Compress: fix memory corruption issue in memcpy"

parents 4bbb4747 3a729213
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ static int soc_compr_set_params_fe(struct snd_compr_stream *cstream,
				goto out;
		}

		memcpy(&fe->dpcm[fe_substream->stream].hw_params, params,
		memset(&fe->dpcm[fe_substream->stream].hw_params, 0,
				sizeof(struct snd_pcm_hw_params));

		fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;
@@ -553,7 +553,7 @@ static int soc_compr_set_params_fe(struct snd_compr_stream *cstream,
		if (ret < 0)
			goto out;
	} else {
		memcpy(&fe->dpcm[fe_substream->stream].hw_params, params,
		memset(&fe->dpcm[fe_substream->stream].hw_params, 0,
				sizeof(struct snd_pcm_hw_params));

		fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;