* [PATCHv2] crypto: cesa: clear cesa_dev on _remove
@ 2026-07-30 19:00 Rosen Penev
2026-08-10 8:31 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2026-07-30 19:00 UTC (permalink / raw)
To: linux-crypto
Cc: Srujana Challa, Bharat Bhushan, Herbert Xu, David S. Miller,
open list
This is already done on probe failure.
cesa_dev should be set to NULL as the driver checks that it is not and
errors saying that only one device is authorized.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
v2: set after mv_cesa_remove_algs
drivers/crypto/marvell/cesa/cesa.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/crypto/marvell/cesa/cesa.c b/drivers/crypto/marvell/cesa/cesa.c
index 4859ad2e86b4..564b09773507 100644
--- a/drivers/crypto/marvell/cesa/cesa.c
+++ b/drivers/crypto/marvell/cesa/cesa.c
@@ -544,6 +544,8 @@ static void mv_cesa_remove(struct platform_device *pdev)
struct mv_cesa_dev *cesa = platform_get_drvdata(pdev);
mv_cesa_remove_algs(cesa);
+
+ cesa_dev = NULL;
}
static const struct platform_device_id mv_cesa_plat_id_table[] = {
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCHv2] crypto: cesa: clear cesa_dev on _remove
2026-07-30 19:00 [PATCHv2] crypto: cesa: clear cesa_dev on _remove Rosen Penev
@ 2026-08-10 8:31 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2026-08-10 8:31 UTC (permalink / raw)
To: Rosen Penev
Cc: linux-crypto, Srujana Challa, Bharat Bhushan, David S. Miller,
open list
On Thu, Jul 30, 2026 at 12:00:29PM -0700, Rosen Penev wrote:
> This is already done on probe failure.
>
> cesa_dev should be set to NULL as the driver checks that it is not and
> errors saying that only one device is authorized.
>
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
> v2: set after mv_cesa_remove_algs
> drivers/crypto/marvell/cesa/cesa.c | 2 ++
> 1 file changed, 2 insertions(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-10 8:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-30 19:00 [PATCHv2] crypto: cesa: clear cesa_dev on _remove Rosen Penev
2026-08-10 8:31 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox