]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: caam - Fix the pointer passed to caam_qi_shutdown()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 15 Sep 2024 10:22:12 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:47:44 +0000 (19:47 +0100)
commitcc386170b3312fd7b5bc4a69a9f52d7f50814526
tree4974f41206f8407520ac3617444e94a38a2d5c82
parente8a2b1c1c2ea85e9a5a2d0c5a5a7e7c639feb866
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>
drivers/crypto/caam/qi.c