crypto: inside-secure - align the cipher and hash send functions
authorOfer Heifetz <oferh@marvell.com>
Thu, 15 Jun 2017 07:56:22 +0000 (09:56 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2017 03:21:44 +0000 (11:21 +0800)
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 <oferh@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_cipher.c

index 59e6081602a25e26dc8c7032a1dff2039d852004..8eea4d30db31feae00e6c77425da83196a8f0f9e 100644 (file)
@@ -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: