On Tue, Feb 02, 2016 at 11:41:56AM -0200, Fabio Estevam wrote: > > static int sahara_sha_import(struct ahash_request *req, const void *in) > { > struct sahara_sha_reqctx *rctx = ahash_request_ctx(req); > > mutex_init(&rctx->mutex); > memcpy(rctx, in, sizeof(struct sahara_sha_reqctx)); Preferably you shouldn't include the mutex in the exported state at all. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html