diff options
author | Harsh Jain <harsh@chelsio.com> | 2018-09-19 22:42:16 +0530 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-09-28 12:44:34 +0800 |
commit | add92a817e60e308a419693413a38d9d1e663aff (patch) | |
tree | 9656fb78ffdaa7b205a56fd30dfedd273195bca8 /drivers/crypto/chelsio/chcr_crypto.h | |
parent | 13cc6f48c7434ce46ba6dbc90003a136a263d75a (diff) | |
download | linux-add92a817e60e308a419693413a38d9d1e663aff.tar.gz linux-add92a817e60e308a419693413a38d9d1e663aff.tar.bz2 linux-add92a817e60e308a419693413a38d9d1e663aff.zip |
crypto: chelsio - Fix memory corruption in DMA Mapped buffers.
Update PCI Id in "cpl_rx_phys_dsgl" header. In case pci_chan_id and
tx_chan_id are not derived from same queue, H/W can send request
completion indication before completing DMA Transfer.
Herbert, It would be good if fix can be merge to stable tree.
For 4.14 kernel, It requires some update to avoid mege conficts.
Cc: <stable@vger.kernel.org>
Signed-off-by: Harsh Jain <harsh@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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h index 54835cb109e5..0d2c70c344f3 100644 --- a/drivers/crypto/chelsio/chcr_crypto.h +++ b/drivers/crypto/chelsio/chcr_crypto.h @@ -255,6 +255,8 @@ struct chcr_context { struct chcr_dev *dev; unsigned char tx_qidx; unsigned char rx_qidx; + unsigned char tx_chan_id; + unsigned char pci_chan_id; struct __crypto_ctx crypto_ctx[0]; }; |