]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/dma/dmatest.c
dmatest: fix handling of an even number of xor_sources
[net-next-2.6.git] / drivers / dma / dmatest.c
index cc0f3294a7661fb1ae6a923d450f91af32e3ee1d..8e409fb50fc0275148743fafd41b9ea8a7e02ed2 100644 (file)
@@ -347,7 +347,7 @@ static int dmatest_func(void *data)
                else if (thread->type == DMA_XOR)
                        tx = dev->device_prep_dma_xor(chan,
                                                      dma_dsts[0] + dst_off,
-                                                     dma_srcs, xor_sources,
+                                                     dma_srcs, src_cnt,
                                                      len, flags);
                else if (thread->type == DMA_PQ) {
                        dma_addr_t dma_pq[dst_cnt];