Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Revert "ALSA: pcm: Avoid possible info leaks from PCM stream buffers"
Browse files Browse the repository at this point in the history
This reverts commit 408d979.
  • Loading branch information
radcolor committed Feb 3, 2020
1 parent c25f895 commit 74f06df
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/core/pcm_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,6 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
LONG_MAX - runtime->buffer_size)
runtime->boundary *= 2;

/* clear the buffer for avoiding possible kernel info leaks */
if (runtime->dma_area)
memset(runtime->dma_area, 0, runtime->dma_bytes);

snd_pcm_timer_resolution_change(substream);
snd_pcm_set_state(substream, SNDRV_PCM_STATE_SETUP);

Expand Down

0 comments on commit 74f06df

Please sign in to comment.