diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 9aac5e58be94063a9502156cbe032905669d8038..e912ea5def3d8e69769ceaf97e6bbb8fa8209e15 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -146,7 +146,8 @@ static void test_cipher_speed(const char *algo, int enc, unsigned int sec,
 			      unsigned int tcount, u8 *keysize)
 {
 	unsigned int ret, i, j, iv_len;
-	const char *key, iv[128];
+	const char *key;
+	char iv[128];
 	struct crypto_blkcipher *tfm;
 	struct blkcipher_desc desc;
 	const char *e;