aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-03-18 21:34:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-03-18 21:34:48 -0700
commit264e3e889d86e552b4191d69bb60f4f3b383135a (patch)
treefde25f5a73c0ebbb1c19ab213270f0aa43ded9c7 /crypto
parentd7a0e1f56472db0825e13f9dd39f0ad79b8c8b3e (diff)
parent8d8002f642886ae256a3c5d70fe8aff4faf3631a (diff)
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: async_tx: avoid the async xor_zero_sum path when src_cnt > device->max_xor fsldma: Fix the DMA halt when using DMA_INTERRUPT async_tx transfer.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/async_tx/async_xor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c
index 7a9db353f19..1c445c7bdab 100644
--- a/crypto/async_tx/async_xor.c
+++ b/crypto/async_tx/async_xor.c
@@ -271,7 +271,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
BUG_ON(src_cnt <= 1);
- if (device) {
+ if (device && src_cnt <= device->max_xor) {
dma_addr_t *dma_src = (dma_addr_t *) src_list;
unsigned long dma_prep_flags = cb_fn ? DMA_PREP_INTERRUPT : 0;
int i;