mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-06 02:24:14 +08:00
dmatest: fix handling of an even number of xor_sources
Just like commit ac5d73fc, we need to be careful to use 'src_cnt' as it contains the fixed up number of xor sources (forced odd) to meet dmatest's data verification scheme. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
94de648d72
commit
67b9124f73
@ -347,7 +347,7 @@ static int dmatest_func(void *data)
|
|||||||
else if (thread->type == DMA_XOR)
|
else if (thread->type == DMA_XOR)
|
||||||
tx = dev->device_prep_dma_xor(chan,
|
tx = dev->device_prep_dma_xor(chan,
|
||||||
dma_dsts[0] + dst_off,
|
dma_dsts[0] + dst_off,
|
||||||
dma_srcs, xor_sources,
|
dma_srcs, src_cnt,
|
||||||
len, flags);
|
len, flags);
|
||||||
else if (thread->type == DMA_PQ) {
|
else if (thread->type == DMA_PQ) {
|
||||||
dma_addr_t dma_pq[dst_cnt];
|
dma_addr_t dma_pq[dst_cnt];
|
||||||
|
Loading…
Reference in New Issue
Block a user