X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fecb.c;h=a46838e98a71a18de0b4adcdd46a5f65fa556be6;hb=0b3eb21b2f2222c4c1e3e21fc3cd427404d3991a;hp=6310387a872c6c4df4dd538a3d60f25c70391590;hpb=18062a91d2ddc40e19fc674afeb7cad58cfa23ab;p=pandora-kernel.git diff --git a/crypto/ecb.c b/crypto/ecb.c index 6310387a872c..a46838e98a71 100644 --- a/crypto/ecb.c +++ b/crypto/ecb.c @@ -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))