X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=crypto%2Fxcbc.c;h=86727403e5ab1f0e5e7bbd15f3703046f4390548;hp=a82959df678c3741f17b9a6bb30bbaf63a540524;hb=e231c2ee64eb1c5cd3c63c31da9dac7d888dcf7f;hpb=d1bc8e95445224276d7896b8b08cbb0b28a0ca80 diff --git a/crypto/xcbc.c b/crypto/xcbc.c index a82959df678c..86727403e5ab 100644 --- a/crypto/xcbc.c +++ b/crypto/xcbc.c @@ -301,7 +301,7 @@ static struct crypto_instance *xcbc_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); switch(alg->cra_blocksize) { case 16: