Skip to contentSkip to conversation

crypto: cesa: clear cesa_dev on _remove

PATCH In review Rosen Penev 2 participants 2 messages Jul 30 – Aug 10

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 crypto: cesa: clear cesa_dev on _remove

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.

---
v2: set after mv_cesa_remove_algs

 drivers/crypto/marvell/cesa/cesa.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/crypto/marvell/cesa/cesa.c +2 -0
index 4859ad2e86b4..564b09773507 100644
@@ -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[] = {
Signature · 1 line
2.55.0
maintainer
#1 lore raw
Quoted 10 lines · Rosen Penev

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.

---
v2: set after mv_cesa_remove_algs

 drivers/crypto/marvell/cesa/cesa.c | 2 ++
 1 file changed, 2 insertions(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt