X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fahash.c;h=793a27f2493e5287c1275df40feaca7b7b14c87e;hb=1d9a394b97b833d3ab37f49caf12d0be3c88050b;hp=3887856c2dd68490736eb17bca5d01eae9837aa0;hpb=5eecb9cc9029aef3c308fc94149c4a3065d40d9a;p=pandora-kernel.git diff --git a/crypto/ahash.c b/crypto/ahash.c index 3887856c2dd6..a92dc382f781 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -213,7 +213,10 @@ static void ahash_op_unaligned_done(struct crypto_async_request *req, int err) ahash_op_unaligned_finish(areq, err); - complete(data, err); + areq->base.complete = complete; + areq->base.data = data; + + complete(&areq->base, err); } static int ahash_op_unaligned(struct ahash_request *req, @@ -404,7 +407,7 @@ static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_report_hash rhash; - snprintf(rhash.type, CRYPTO_MAX_ALG_NAME, "%s", "ahash"); + strncpy(rhash.type, "ahash", sizeof(rhash.type)); rhash.blocksize = alg->cra_blocksize; rhash.digestsize = __crypto_hash_alg_common(alg)->digestsize;