[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1600423219-29058-2-git-send-email-shane.chien@mediatek.com>
Date: Fri, 18 Sep 2020 18:00:19 +0800
From: Shane Chien <shane.chien@...iatek.com>
To: Matthias Brugger <matthias.bgg@...il.com>,
Mark Brown <broonie@...nel.org>
CC: <linux-kernel@...r.kernel.org>,
<linux-mediatek@...ts.infradead.org>, <devicetree@...r.kernel.org>,
<wsd_upstream@...iatek.com>, <jiaxin.yu@...iatek.com>,
<eason.yen@...iatek.com>, <shane.chien@...iatek.com>
Subject: [PATCH] ASoC: Use memset_io to access I/O memory
From: "Shane.Chien" <shane.chien@...iatek.com>
Use memset_io to access I/O memory, instead of
memset.
Signed-off-by: Shane.Chien <shane.chien@...iatek.com>
---
sound/core/pcm_native.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 9e0b2d7..a4efa84 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -756,7 +756,7 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
/* clear the buffer for avoiding possible kernel info leaks */
if (runtime->dma_area && !substream->ops->copy_user)
- memset(runtime->dma_area, 0, runtime->dma_bytes);
+ memset_io(runtime->dma_area, 0, runtime->dma_bytes);
snd_pcm_timer_resolution_change(substream);
snd_pcm_set_state(substream, SNDRV_PCM_STATE_SETUP);
--
1.7.9.5
Powered by blists - more mailing lists