diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-09-15 12:22:12 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:01:15 +0100 |
| commit | ad39df0898d3f469776c19d99229be055cc2dcea (patch) | |
| tree | 4e5a0b0da2556308ff1f55e067b87a970e31e8e3 | |
| parent | 91170f0e90c1f14a20d3bc1bf455106a06ad8797 (diff) | |
| download | linux-ad39df0898d3f469776c19d99229be055cc2dcea.tar.gz linux-ad39df0898d3f469776c19d99229be055cc2dcea.tar.bz2 linux-ad39df0898d3f469776c19d99229be055cc2dcea.zip | |
crypto: caam - Fix the pointer passed to caam_qi_shutdown()
[ Upstream commit ad980b04f51f7fb503530bd1cb328ba5e75a250e ]
The type of the last parameter given to devm_add_action_or_reset() is
"struct caam_drv_private *", but in caam_qi_shutdown(), it is casted to
"struct device *".
Pass the correct parameter to devm_add_action_or_reset() so that the
resources are released as expected.
Fixes: f414de2e2fff ("crypto: caam - use devres to de-initialize QI")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | drivers/crypto/caam/qi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/qi.c b/drivers/crypto/caam/qi.c index f6111ee9ed34..8ed2bb01a619 100644 --- a/drivers/crypto/caam/qi.c +++ b/drivers/crypto/caam/qi.c @@ -794,7 +794,7 @@ int caam_qi_init(struct platform_device *caam_pdev) caam_debugfs_qi_init(ctrlpriv); - err = devm_add_action_or_reset(qidev, caam_qi_shutdown, ctrlpriv); + err = devm_add_action_or_reset(qidev, caam_qi_shutdown, qidev); if (err) goto fail2; |
