OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5144d0d
)
Revert "ALSA: pcm: Avoid possible info leaks from PCM stream buffers"
author
0ranko0P
<ranko0p@outlook.com>
Sun, 19 Jan 2020 13:37:00 +0000
(21:37 +0800)
committer
0ranko0P
<ranko0p@outlook.com>
Wed, 5 Feb 2020 07:56:05 +0000
(15:56 +0800)
This reverts commit
408d9794b634b1e401f17bda546bdea15d9306c1
.
sound/core/pcm_native.c
patch
|
blob
|
history
diff --git
a/sound/core/pcm_native.c
b/sound/core/pcm_native.c
index
6a5cee1
..
7f87e4c
100644
(file)
--- a/
sound/core/pcm_native.c
+++ b/
sound/core/pcm_native.c
@@
-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);