crypto: rockchip - fix scatterlist nents error
authorZhang Zhijie <zhangzj@rock-chips.com>
Wed, 13 Feb 2019 08:24:38 +0000 (16:24 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:26 +0000 (12:47 +0800)
commit4359669a087633132203c52d67dd8c31e09e7b2e
tree0c0f37cd69ca229dbbf5da9292d7d76b7549a579
parentb5be853181a8d4a6e20f2073ccd273d6280cad88
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>
drivers/crypto/rockchip/rk3288_crypto.c
drivers/crypto/rockchip/rk3288_crypto.h
drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c
drivers/crypto/rockchip/rk3288_crypto_ahash.c