diff options
-rw-r--r-- | arch/x86/crypto/blowfish_glue.c | 3 | ||||
-rw-r--r-- | arch/x86/crypto/cast5_avx_glue.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/crypto/blowfish_glue.c b/arch/x86/crypto/blowfish_glue.c index 50ec333b70e6..8af519ed73d1 100644 --- a/arch/x86/crypto/blowfish_glue.c +++ b/arch/x86/crypto/blowfish_glue.c | |||
@@ -223,9 +223,6 @@ static unsigned int __cbc_decrypt(struct blkcipher_desc *desc, | |||
223 | src -= 1; | 223 | src -= 1; |
224 | dst -= 1; | 224 | dst -= 1; |
225 | } while (nbytes >= bsize * 4); | 225 | } while (nbytes >= bsize * 4); |
226 | |||
227 | if (nbytes < bsize) | ||
228 | goto done; | ||
229 | } | 226 | } |
230 | 227 | ||
231 | /* Handle leftovers */ | 228 | /* Handle leftovers */ |
diff --git a/arch/x86/crypto/cast5_avx_glue.c b/arch/x86/crypto/cast5_avx_glue.c index e6a3700489b9..e57e20ab5e0b 100644 --- a/arch/x86/crypto/cast5_avx_glue.c +++ b/arch/x86/crypto/cast5_avx_glue.c | |||
@@ -203,9 +203,6 @@ static unsigned int __cbc_decrypt(struct blkcipher_desc *desc, | |||
203 | src -= 1; | 203 | src -= 1; |
204 | dst -= 1; | 204 | dst -= 1; |
205 | } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); | 205 | } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); |
206 | |||
207 | if (nbytes < bsize) | ||
208 | goto done; | ||
209 | } | 206 | } |
210 | 207 | ||
211 | /* Handle leftovers */ | 208 | /* Handle leftovers */ |