mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[CRYPTO] api: Fixed incorrect passing of context instead of tfm
Fix a few omissions in passing TFM instead of CTX to algorithms. Signed-off-by: Michal Ludvig <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
82062c72cd
commit
110bf1c0e9
2 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ int crypto_init_compress_ops(struct crypto_tfm *tfm)
|
|||
int ret = 0;
|
||||
struct compress_tfm *ops = &tfm->crt_compress;
|
||||
|
||||
ret = tfm->__crt_alg->cra_compress.coa_init(crypto_tfm_ctx(tfm));
|
||||
ret = tfm->__crt_alg->cra_compress.coa_init(tfm);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
|
@ -57,5 +57,5 @@ out:
|
|||
|
||||
void crypto_exit_compress_ops(struct crypto_tfm *tfm)
|
||||
{
|
||||
tfm->__crt_alg->cra_compress.coa_exit(crypto_tfm_ctx(tfm));
|
||||
tfm->__crt_alg->cra_compress.coa_exit(tfm);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue