Files
linux/drivers
Andy Shevchenko f2dbb2b5d9 dmaengine: dmatest: Abort test in case of mapping error
[ Upstream commit 6454368a80 ]

In case of mapping error the DMA addresses are invalid and continuing
will screw system memory or potentially something else.

[  222.480310] dmatest: dma0chan7-copy0: summary 1 tests, 3 failures 6 iops 349 KB/s (0)
...
[  240.912725] check: Corrupted low memory at 00000000c7c75ac9 (2940 phys) = 5656000000000000
[  240.921998] check: Corrupted low memory at 000000005715a1cd (2948 phys) = 279f2aca5595ab2b
[  240.931280] check: Corrupted low memory at 000000002f4024c0 (2950 phys) = 5e5624f349e793cf
...

Abort any test if mapping failed.

Fixes: 4076e755db ("dmatest: convert to dmaengine_unmap_data")
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-13 14:03:21 -07:00
..
2019-02-12 19:46:03 +01:00
2018-07-03 11:24:56 +02:00
2019-02-12 19:46:09 +01:00
2018-12-21 14:13:14 +01:00
2018-09-15 09:45:27 +02:00
2018-12-21 14:13:13 +01:00
2018-11-13 11:15:11 -08:00
2019-03-13 14:03:20 -07:00
2018-10-03 17:00:46 -07:00