X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=crypto%2Fcipher.c;h=6ab56eb3502c89f1f3b790e22b96ddfdad710cf9;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=cdcf3472e9af3773148d6cbfae54757edb949dba;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/crypto/cipher.c b/crypto/cipher.c index cdcf3472e..6ab56eb35 100644 --- a/crypto/cipher.c +++ b/crypto/cipher.c @@ -52,8 +52,8 @@ static int crypt(struct crypto_tfm *tfm, { struct scatter_walk walk_in, walk_out; const unsigned int bsize = crypto_tfm_alg_blocksize(tfm); - u8 tmp_src[nbytes > src->length ? bsize : 0]; - u8 tmp_dst[nbytes > dst->length ? bsize : 0]; + u8 tmp_src[bsize]; + u8 tmp_dst[bsize]; if (!nbytes) return 0;