Re: [PATCH] ARM: dma-mapping: fix out of bounds access in CMA

2021-03-23 Thread Russell King - ARM Linux admin
On Tue, Mar 23, 2021 at 02:14:13PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Dereferencing a zero-length array is always a bug, and we get a warning > with 'make W=1' here: > > arch/arm/mm/dma-mapping.c: In function 'dma_contiguous_early_fixup': > arch/arm/mm/dma-mapping.c:395:15:

[PATCH] ARM: dma-mapping: fix out of bounds access in CMA

2021-03-23 Thread Arnd Bergmann
From: Arnd Bergmann Dereferencing a zero-length array is always a bug, and we get a warning with 'make W=1' here: arch/arm/mm/dma-mapping.c: In function 'dma_contiguous_early_fixup': arch/arm/mm/dma-mapping.c:395:15: error: array subscript is outside array bounds of 'struct