]> www.infradead.org Git - users/jedix/linux-maple.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:05 +0000 (13:22 +0800)
commitad980b04f51f7fb503530bd1cb328ba5e75a250e
treeec9ee909b6b8ec09205d2ed4167e6f15ba670f07
parentc62db61a416ff832481bccdfdee146f5272864b3
crypto: caam - Fix the pointer passed to caam_qi_shutdown()

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>
drivers/crypto/caam/qi.c