OSDN Git Service

Revert "ALSA: pcm: Avoid possible info leaks from PCM stream buffers"
author0ranko0P <ranko0p@outlook.com>
Sun, 19 Jan 2020 13:37:00 +0000 (21:37 +0800)
committer0ranko0P <ranko0p@outlook.com>
Wed, 5 Feb 2020 07:56:05 +0000 (15:56 +0800)
This reverts commit 408d9794b634b1e401f17bda546bdea15d9306c1.

sound/core/pcm_native.c

index 6a5cee1..7f87e4c 100644 (file)
@@ -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);