diff options
-rw-r--r-- | crypto/ablkcipher.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c index a854df2a5a4b..fdc67d38660b 100644 --- a/crypto/ablkcipher.c +++ b/crypto/ablkcipher.c | |||
@@ -141,8 +141,7 @@ err: | |||
141 | 141 | ||
142 | if (walk->iv != req->info) | 142 | if (walk->iv != req->info) |
143 | memcpy(req->info, walk->iv, tfm->crt_ablkcipher.ivsize); | 143 | memcpy(req->info, walk->iv, tfm->crt_ablkcipher.ivsize); |
144 | if (walk->iv_buffer) | 144 | kfree(walk->iv_buffer); |
145 | kfree(walk->iv_buffer); | ||
146 | 145 | ||
147 | return err; | 146 | return err; |
148 | } | 147 | } |