diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-01-30 22:48:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 10:44:27 +0300 |
commit | 683c0116fbc1fb5e756e7df2df3afe9152d2fd05 (patch) | |
tree | 4acf7b63682851abef14ed9dcfe2c0e5f0f8fd0a /drivers/s390 | |
parent | 86785a16817cb5b27efc04bfa0327f243116e38d (diff) | |
download | linux-683c0116fbc1fb5e756e7df2df3afe9152d2fd05.tar.xz |
dmaengine: dmatest: Abort test in case of mapping error
[ Upstream commit 6454368a804c4955ccd116236037536f81e5b1f1 ]
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: 4076e755dbec ("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>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions