diff options
author | Harsh Jain <harsh@chelsio.com> | 2017-01-24 10:34:32 +0530 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-03 17:45:44 +0800 |
commit | 94e1dab1c94715e18bb0bada503de3f3d7593076 (patch) | |
tree | 2bfaeb25c1875f4b26ccdfa7ae2666d875da1c0e /drivers/crypto/chelsio/chcr_crypto.h | |
parent | 685ce0626840e2673fe64ea8807684f7324fec5f (diff) | |
download | linux-94e1dab1c94715e18bb0bada503de3f3d7593076.tar.gz linux-94e1dab1c94715e18bb0bada503de3f3d7593076.tar.bz2 linux-94e1dab1c94715e18bb0bada503de3f3d7593076.zip |
crypto: chcr - Fix panic on dma_unmap_sg
Save DMA mapped sg list addresses to request context buffer.
Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/chelsio/chcr_crypto.h')
-rw-r--r-- | drivers/crypto/chelsio/chcr_crypto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h index d5af7d64a763..7ec0a8f12475 100644 --- a/drivers/crypto/chelsio/chcr_crypto.h +++ b/drivers/crypto/chelsio/chcr_crypto.h @@ -158,6 +158,9 @@ struct ablk_ctx { }; struct chcr_aead_reqctx { struct sk_buff *skb; + struct scatterlist *dst; + struct scatterlist srcffwd[2]; + struct scatterlist dstffwd[2]; short int dst_nents; u16 verify; u8 iv[CHCR_MAX_CRYPTO_IV_LEN]; |