linux-stable/drivers/dma/ioat
Dave Jiang 2eab9b1a30 dmaengine: ioatdma: fix uninitialized array usage
Static analysis showed that unitialized array is being used for compare.
At line 850 when a dma_mapping_error() occurs, it jumps to dma_unmap. At
this point, dma_srcs has not been initialized. However, the code after
dma_unmap label checks dma_srcs for a comparison and thus is comparing
to random garbage in the array. Given that when dest_dma is being mapped
this is the first instance of mapping DMA memory and failed, there is
really nothing to be cleaned up and thus should jump to free_resources
label instead.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2016-08-08 08:02:00 +05:30
..
dca.c dmaengine: ioatdma: constify dca_ops structures 2015-11-16 09:27:32 +05:30
dma.c dmaengine updates for 4.6 2016-03-17 12:34:54 -07:00
dma.h dmaengine: IOATDMA: revise channel reset workaround on CB3.3 platforms 2016-03-11 07:55:08 +05:30
hw.h dmaengine: IOATDMA: Allocate DMA descriptor ring in contig DMA memory 2016-02-15 23:06:53 +05:30
init.c dmaengine: ioatdma: fix uninitialized array usage 2016-08-08 08:02:00 +05:30
Makefile dmaengine: ioatdma: removal of dma_v3.c and relevant ioat3 references 2015-08-17 13:37:30 +05:30
prep.c dmaengine: ioatdma: Squelch framesize warnings 2016-01-25 09:49:55 +05:30
registers.h dmaengine: ioatdma: disable relaxed ordering for ioatdma 2016-05-14 13:36:52 +05:30
sysfs.c dmaengine: ioatdma: move all sysfs related code 2015-08-17 13:37:30 +05:30