Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165852
b: refs/heads/master
c: 1f6672d
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams committed Sep 21, 2009
1 parent 96ba36c commit 4f41f0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdef57dbb618608bfffda2fc32c8d0a4012a1d3a
refs/heads/master: 1f6672d44c1ae7408b43c06170ec34eb0a0e9b9f
13 changes: 13 additions & 0 deletions trunk/crypto/async_tx/async_raid6_recov.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ async_sum_product(struct page *dest, struct page **srcs, unsigned char *coef,
async_tx_submit(chan, tx, submit);
return tx;
}

/* could not get a descriptor, unmap and fall through to
* the synchronous path
*/
dma_unmap_page(dev, dma_dest[1], len, DMA_BIDIRECTIONAL);
dma_unmap_page(dev, dma_src[0], len, DMA_TO_DEVICE);
dma_unmap_page(dev, dma_src[1], len, DMA_TO_DEVICE);
}

/* run the operation synchronously */
Expand Down Expand Up @@ -101,6 +108,12 @@ async_mult(struct page *dest, struct page *src, u8 coef, size_t len,
async_tx_submit(chan, tx, submit);
return tx;
}

/* could not get a descriptor, unmap and fall through to
* the synchronous path
*/
dma_unmap_page(dev, dma_dest[1], len, DMA_BIDIRECTIONAL);
dma_unmap_page(dev, dma_src[0], len, DMA_TO_DEVICE);
}

/* no channel available, or failed to allocate a descriptor, so
Expand Down

0 comments on commit 4f41f0a

Please sign in to comment.