X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=crypto%2Fshash.c;h=76f74b96315119c039970519597251ff1e729c39;hb=c73b7d02da9bfb4fadafc118a24ee868708839b6;hp=22fd9433141f997c2d5d11f0e46625309dfbe43a;hpb=f1bbbb6912662b9f6070c5bfc4ca9eb1f06a9d5b;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git diff --git a/crypto/shash.c b/crypto/shash.c index 22fd9433141f..76f74b963151 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -310,7 +310,13 @@ static int shash_async_export(struct ahash_request *req, void *out) static int shash_async_import(struct ahash_request *req, const void *in) { - return crypto_shash_import(ahash_request_ctx(req), in); + struct crypto_shash **ctx = crypto_ahash_ctx(crypto_ahash_reqtfm(req)); + struct shash_desc *desc = ahash_request_ctx(req); + + desc->tfm = *ctx; + desc->flags = req->base.flags; + + return crypto_shash_import(desc, in); } static void crypto_exit_shash_ops_async(struct crypto_tfm *tfm)