From: Rosen Penev <rosenp@gmail.com>
To: linux-crypto@vger.kernel.org
Cc: Srujana Challa <schalla@marvell.com>,
Bharat Bhushan <bbhushan2@marvell.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org (open list)
Subject: [PATCHv2] crypto: cesa: clear cesa_dev on _remove
Date: Thu, 30 Jul 2026 12:00:29 -0700 [thread overview]
Message-ID: <20260730190029.1038946-1-rosenp@gmail.com> (raw)
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
next reply other threads:[~2026-07-30 19:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 19:00 Rosen Penev [this message]
2026-08-10 8:31 ` [PATCHv2] crypto: cesa: clear cesa_dev on _remove Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260730190029.1038946-1-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=bbhushan2@marvell.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=schalla@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.