Re: dma_zalloc_coherent broken with 57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7

From: Christoph Hellwig
Date: Wed Mar 28 2018 - 07:57:08 EST


On Tue, Mar 27, 2018 at 07:04:51PM +0200, Sebastian Ott wrote:
> What was wrong with the old behavior (let the caller decide - the same
> as with memory allocations)?

The old behavior on most (all?) mainstream architectures is that we
always zero the return value. On x86/i386 this goes back to at least
Linux 2.4. So common drivers simply expect this to happen.