diff options
author | Zhang Zhijie <zhangzj@rock-chips.com> | 2019-02-13 16:24:38 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-02-22 12:47:26 +0800 |
commit | 4359669a087633132203c52d67dd8c31e09e7b2e (patch) | |
tree | 0c0f37cd69ca229dbbf5da9292d7d76b7549a579 /drivers/crypto/rockchip/rk3288_crypto.h | |
parent | b5be853181a8d4a6e20f2073ccd273d6280cad88 (diff) | |
download | linux-stable-4359669a087633132203c52d67dd8c31e09e7b2e.tar.gz linux-stable-4359669a087633132203c52d67dd8c31e09e7b2e.tar.bz2 linux-stable-4359669a087633132203c52d67dd8c31e09e7b2e.zip |
crypto: rockchip - fix scatterlist nents error
In some cases, the nents of src scatterlist is different from
dst scatterlist. So two variables are used to handle the nents
of src&dst scatterlist.
Reported-by: Eric Biggers <ebiggers@google.com>
Fixes: 433cd2c617bf ("crypto: rockchip - add crypto driver for rk3288")
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: Zhang Zhijie <zhangzj@rock-chips.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/rockchip/rk3288_crypto.h')
-rw-r--r-- | drivers/crypto/rockchip/rk3288_crypto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/rockchip/rk3288_crypto.h b/drivers/crypto/rockchip/rk3288_crypto.h index d5fb4013fb42..417c445d8dea 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.h +++ b/drivers/crypto/rockchip/rk3288_crypto.h @@ -207,7 +207,8 @@ struct rk_crypto_info { void *addr_vir; int aligned; int align_size; - size_t nents; + size_t src_nents; + size_t dst_nents; unsigned int total; unsigned int count; dma_addr_t addr_in; |