Commit 9a611a1d authored by Herbert Xu's avatar Herbert Xu

Revert "ASoC: cros_ec_codec: use crypto_shash_tfm_digest()"

This reverts commit 85fc78b8 as
a different fix has already been applied in the sound-asoc tree
and this patch is no longer required.
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Reported-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 228c4f26
...@@ -115,7 +115,14 @@ static int calculate_sha256(struct cros_ec_codec_priv *priv, ...@@ -115,7 +115,14 @@ static int calculate_sha256(struct cros_ec_codec_priv *priv,
return PTR_ERR(tfm); return PTR_ERR(tfm);
} }
crypto_shash_tfm_digest(tfm, buf, size, digest); {
SHASH_DESC_ON_STACK(desc, tfm);
desc->tfm = tfm;
crypto_shash_digest(desc, buf, size, digest);
shash_desc_zero(desc);
}
crypto_free_shash(tfm); crypto_free_shash(tfm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment