Re: [PATCH] dma-engine: Fix array index out of bounds warning in __get_unmap_pool()

2017-03-13 Thread Vinod Koul
On Mon, Mar 13, 2017 at 02:30:29PM -0700, Matthias Kaehlcke wrote: > This fixes the following warning when building with clang and > CONFIG_DMA_ENGINE_RAID=n : > > drivers/dma/dmaengine.c:1102:11: error: array index 2 is past the end of the > array (which contains 1 element) [-Werror,-Warray-boun

Re: [PATCH] dma-engine: Fix array index out of bounds warning in __get_unmap_pool()

2017-03-13 Thread Dan Williams
On Mon, Mar 13, 2017 at 2:30 PM, Matthias Kaehlcke wrote: > This fixes the following warning when building with clang and > CONFIG_DMA_ENGINE_RAID=n : > > drivers/dma/dmaengine.c:1102:11: error: array index 2 is past the end of the > array (which contains 1 element) [-Werror,-Warray-bounds] >

[PATCH] dma-engine: Fix array index out of bounds warning in __get_unmap_pool()

2017-03-13 Thread Matthias Kaehlcke
This fixes the following warning when building with clang and CONFIG_DMA_ENGINE_RAID=n : drivers/dma/dmaengine.c:1102:11: error: array index 2 is past the end of the array (which contains 1 element) [-Werror,-Warray-bounds] return &unmap_pool[2]; ^