Commit 4452c64e authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Herbert Xu

crypto: rk3288 - Use helper to set reqsize

The value of reqsize must only be changed through the helper.
Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent bfcec4c6
...@@ -445,8 +445,8 @@ static int rk_cipher_tfm_init(struct crypto_skcipher *tfm) ...@@ -445,8 +445,8 @@ static int rk_cipher_tfm_init(struct crypto_skcipher *tfm)
return PTR_ERR(ctx->fallback_tfm); return PTR_ERR(ctx->fallback_tfm);
} }
tfm->reqsize = sizeof(struct rk_cipher_rctx) + crypto_skcipher_set_reqsize(tfm, sizeof(struct rk_cipher_rctx) +
crypto_skcipher_reqsize(ctx->fallback_tfm); crypto_skcipher_reqsize(ctx->fallback_tfm));
return 0; return 0;
} }
......
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