From: Ofer Heifetz Date: Thu, 15 Jun 2017 07:56:22 +0000 (+0200) Subject: crypto: inside-secure - align the cipher and hash send functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=152bdf4cdb9c20e1858bc1b754c7bfb984a6ea14;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: inside-secure - align the cipher and hash send functions The cipher and hash send functions both set the results variable, to be used later by the caller. Align the way they're setting this variable. Signed-off-by: Ofer Heifetz Signed-off-by: Antoine Tenart Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/inside-secure/safexcel_cipher.c b/drivers/crypto/inside-secure/safexcel_cipher.c index 59e6081602a2..8eea4d30db31 100644 --- a/drivers/crypto/inside-secure/safexcel_cipher.c +++ b/drivers/crypto/inside-secure/safexcel_cipher.c @@ -269,7 +269,7 @@ static int safexcel_aes_send(struct crypto_async_request *async, spin_unlock_bh(&priv->ring[ring].egress_lock); *commands = n_cdesc; - *results = nr_dst; + *results = n_rdesc; return 0; rdesc_rollback: