Skip to content

Commit

Permalink
crypto: rk3288 - Use helper to set reqsize
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ovidiu Panait authored and Herbert Xu committed Dec 29, 2023
1 parent bfcec4c commit 4452c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/rockchip/rk3288_crypto_skcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4452c64

Please sign in to comment.