]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - crypto/authenc.c
8139cp: fix checksum broken
[net-next-2.6.git] / crypto / authenc.c
index b9884ee0adb679e2dd77fa674915b586952cfc37..a5a22cfcd07bd5d9831f3f4b1fcbb91060f8173e 100644 (file)
@@ -616,7 +616,7 @@ static struct crypto_instance *crypto_authenc_alloc(struct rtattr **tb)
        auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH,
                               CRYPTO_ALG_TYPE_AHASH_MASK);
        if (IS_ERR(auth))
-               return ERR_PTR(PTR_ERR(auth));
+               return ERR_CAST(auth);
 
        auth_base = &auth->base;