diff options
author | Ayush Sawal <ayush.sawal@chelsio.com> | 2020-06-10 02:54:31 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-10 17:05:02 -0700 |
commit | fb90a1c85d8f08c85d9fd5729bfdeb786119f219 (patch) | |
tree | 12e1766cd5899d61e1c149f98ed6f3aeff5f2e3f /mm/memremap.c | |
parent | 934e36ec5e81b8bc079f3d7acd12beb16cad9531 (diff) | |
download | linux-fb90a1c85d8f08c85d9fd5729bfdeb786119f219.tar.gz linux-fb90a1c85d8f08c85d9fd5729bfdeb786119f219.tar.bz2 linux-fb90a1c85d8f08c85d9fd5729bfdeb786119f219.zip |
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>
Diffstat (limited to 'mm/memremap.c')
0 files changed, 0 insertions, 0 deletions