提交 30a9e501 编写于 作者: L Linus Torvalds

Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

Pull crypto fixes from Herbert Xu:
 "This push fixes a crash in the new sha256_ssse3 driver as well as a
  DMA setup/teardown bug in caam"

* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  crypto: sha256_ssse3 - fix stack corruption with SSSE3 and AVX implementations
  crypto: caam - fix inconsistent assoc dma mapping direction
...@@ -118,7 +118,7 @@ y2 = %r15d ...@@ -118,7 +118,7 @@ y2 = %r15d
_INP_END_SIZE = 8 _INP_END_SIZE = 8
_INP_SIZE = 8 _INP_SIZE = 8
_XFER_SIZE = 8 _XFER_SIZE = 16
_XMM_SAVE_SIZE = 0 _XMM_SAVE_SIZE = 0
_INP_END = 0 _INP_END = 0
......
...@@ -111,7 +111,7 @@ y2 = %r15d ...@@ -111,7 +111,7 @@ y2 = %r15d
_INP_END_SIZE = 8 _INP_END_SIZE = 8
_INP_SIZE = 8 _INP_SIZE = 8
_XFER_SIZE = 8 _XFER_SIZE = 16
_XMM_SAVE_SIZE = 0 _XMM_SAVE_SIZE = 0
_INP_END = 0 _INP_END = 0
......
...@@ -1154,7 +1154,7 @@ static struct aead_edesc *aead_edesc_alloc(struct aead_request *req, ...@@ -1154,7 +1154,7 @@ static struct aead_edesc *aead_edesc_alloc(struct aead_request *req,
dst_nents = sg_count(req->dst, req->cryptlen, &dst_chained); dst_nents = sg_count(req->dst, req->cryptlen, &dst_chained);
sgc = dma_map_sg_chained(jrdev, req->assoc, assoc_nents ? : 1, sgc = dma_map_sg_chained(jrdev, req->assoc, assoc_nents ? : 1,
DMA_BIDIRECTIONAL, assoc_chained); DMA_TO_DEVICE, assoc_chained);
if (likely(req->src == req->dst)) { if (likely(req->src == req->dst)) {
sgc = dma_map_sg_chained(jrdev, req->src, src_nents ? : 1, sgc = dma_map_sg_chained(jrdev, req->src, src_nents ? : 1,
DMA_BIDIRECTIONAL, src_chained); DMA_BIDIRECTIONAL, src_chained);
...@@ -1336,7 +1336,7 @@ static struct aead_edesc *aead_giv_edesc_alloc(struct aead_givcrypt_request ...@@ -1336,7 +1336,7 @@ static struct aead_edesc *aead_giv_edesc_alloc(struct aead_givcrypt_request
dst_nents = sg_count(req->dst, req->cryptlen, &dst_chained); dst_nents = sg_count(req->dst, req->cryptlen, &dst_chained);
sgc = dma_map_sg_chained(jrdev, req->assoc, assoc_nents ? : 1, sgc = dma_map_sg_chained(jrdev, req->assoc, assoc_nents ? : 1,
DMA_BIDIRECTIONAL, assoc_chained); DMA_TO_DEVICE, assoc_chained);
if (likely(req->src == req->dst)) { if (likely(req->src == req->dst)) {
sgc = dma_map_sg_chained(jrdev, req->src, src_nents ? : 1, sgc = dma_map_sg_chained(jrdev, req->src, src_nents ? : 1,
DMA_BIDIRECTIONAL, src_chained); DMA_BIDIRECTIONAL, src_chained);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册