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
..
2016-10-06 17:13:54 -07:00
2016-10-06 17:13:54 -07:00
2016-10-06 17:13:54 -07:00
2016-10-06 17:13:54 -07:00
2016-03-24 23:13:48 -07:00
2016-10-06 17:13:54 -07:00
2016-10-03 09:18:14 +05:30
2016-07-12 10:09:53 +05:30
2016-09-05 16:40:52 +05:30
2016-05-27 15:26:11 -07:00
2015-11-10 10:05:17 -08:00