ntb_perf: Fix an error code in perf_copy_chunk()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 23 Jan 2018 08:33:56 +0000 (11:33 +0300)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:24 +0000 (22:17 -0500)
commitcd20dc3ca75f17fd391e825b1606050bd62703fc
tree55baf1f3aee9d17eaed27f0e6e826cb6f7e09b4b
parentae07abdb84b267627f6e10fb813e62de5c3c8117
ntb_perf: Fix an error code in perf_copy_chunk()

We accidentally return success if dmaengine_submit() fails.  The fix is
to preserve the error code from dma_submit_error().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c