linux-stable/drivers/dma/ioat
Pan Bian 7393fca924 dmaengine: ioat: set error code on failures
In function ioat_xor_val_self_test(), when the calls to
dma_mapping_error() fail, the value of return variable err is 0
(indicates no error). As a result, the return value may be inconsistent
with the execution status. This patch fixes the bug by assigning
"-ENOMEM" to err on the error path.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188601
Signed-off-by: Pan Bian <bianpan2016@163.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2016-12-06 10:28:18 +05:30
..
dca.c dmaengine: ioatdma: constify dca_ops structures 2015-11-16 09:27:32 +05:30
dma.c dmaengine: ioatdma: error string table missing an entry 2016-11-14 11:00:37 +05:30
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: ioat: set error code on failures 2016-12-06 10:28:18 +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: Add error handling to ioat driver 2016-08-08 08:11:42 +05:30
sysfs.c dmaengine: ioatdma: move all sysfs related code 2015-08-17 13:37:30 +05:30