crypto: rk3288 - Use helper to set reqsize
The value of reqsize must only be changed through the helper. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
bfcec4c65b
commit
4452c64ee4
@ -445,8 +445,8 @@ static int rk_cipher_tfm_init(struct crypto_skcipher *tfm)
|
||||
return PTR_ERR(ctx->fallback_tfm);
|
||||
}
|
||||
|
||||
tfm->reqsize = sizeof(struct rk_cipher_rctx) +
|
||||
crypto_skcipher_reqsize(ctx->fallback_tfm);
|
||||
crypto_skcipher_set_reqsize(tfm, sizeof(struct rk_cipher_rctx) +
|
||||
crypto_skcipher_reqsize(ctx->fallback_tfm));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user