Re: [GIT PULL] sh: remove sh5 support

From: Arnd Bergmann
Date: Mon Jun 01 2020 - 17:12:38 EST


On Mon, Jun 1, 2020 at 8:13 PM Rich Felker <dalias@xxxxxxxx> wrote:
> On Sat, May 30, 2020 at 10:08:09AM +0200, John Paul Adrian Glaubitz wrote:
> > On 5/29/20 7:53 PM, Rich Felker wrote:
> > > [PATCH next] sh: remove call to memset after dma_alloc_coherent
> > > https://marc.info/?l=linux-sh&m=157793031102356&w=2
>
> Can anyone confirm that this is correct/safe?

Yes, this is safe, I checked both the API definition and the sh
implementation in arch_dma_alloc(), which passes __GFP_ZERO.

Arnd