[PATCHv2] crypto: cesa: clear cesa_dev on _remove
Rosen Penev <[email protected]> Thu, 30 Jul 2026 12:00:29 -0700
| Newsgroups | org.kernel.vger.linux-crypto,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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