commit | fb90a1c85d8f08c85d9fd5729bfdeb786119f219 | [log] [tgz] |
---|---|---|
author | Ayush Sawal <ayush.sawal@chelsio.com> | Wed Jun 10 02:54:31 2020 +0530 |
committer | David S. Miller <davem@davemloft.net> | Wed Jun 10 17:05:02 2020 -0700 |
tree | 12e1766cd5899d61e1c149f98ed6f3aeff5f2e3f | |
parent | 934e36ec5e81b8bc079f3d7acd12beb16cad9531 [diff] |
Crypto/chcr: Calculate src and dst sg lengths separately for dma map This patch calculates src and dst sg lengths separately for dma mapping in case of aead operation. This fixes a panic which occurs due to the accessing of a zero length sg. Panic: [ 138.173225] kernel BUG at drivers/iommu/intel-iommu.c:1184! Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>