X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=crypto%2Fecb.c;h=935cfef4aa8479c54cd6490db8a9b97da9125ab5;hb=4a2f8a5c16b0828bf3ec89b4ce290bda5a0547de;hp=6310387a872c6c4df4dd538a3d60f25c70391590;hpb=4d4700707c0d4be0efc968989fb1cd01c60c0a35;p=karo-tx-linux.git diff --git a/crypto/ecb.c b/crypto/ecb.c index 6310387a872c..935cfef4aa84 100644 --- a/crypto/ecb.c +++ b/crypto/ecb.c @@ -55,7 +55,7 @@ static int crypto_ecb_crypt(struct blkcipher_desc *desc, do { fn(crypto_cipher_tfm(tfm), wdst, wsrc); - + wsrc += bsize; wdst += bsize; } while ((nbytes -= bsize) >= bsize); @@ -128,7 +128,7 @@ static struct crypto_instance *crypto_ecb_alloc(struct rtattr **tb) alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, CRYPTO_ALG_TYPE_MASK); if (IS_ERR(alg)) - return ERR_PTR(PTR_ERR(alg)); + return ERR_CAST(alg); inst = crypto_alloc_instance("ecb", alg); if (IS_ERR(inst))