From: Davidlohr Bueso <d...@gnu.org>

Signed-off-by: Davidlohr Bueso <d...@gnu.org>
---
 crypto/ablkcipher.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c
index a854df2..fdc67d3 100644
--- a/crypto/ablkcipher.c
+++ b/crypto/ablkcipher.c
@@ -141,8 +141,7 @@ err:
 
        if (walk->iv != req->info)
                memcpy(req->info, walk->iv, tfm->crt_ablkcipher.ivsize);
-       if (walk->iv_buffer)
-               kfree(walk->iv_buffer);
+       kfree(walk->iv_buffer);
 
        return err;
 }
-- 
1.7.1



--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to