[PATCH v2 11/30] crypto: sa2ul - keep the probe register mapping local
From: Manorit Chawdhry
Date: Wed Nov 04 2026 - 00:46:00 EST
A static mapping pointer is shared by concurrent probe calls, which can
redirect register accesses to another device. Fix it even though there
aren't multiple devices getting probed today in Linux.
Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver")
Signed-off-by: Manorit Chawdhry <m-chawdhry@xxxxxx>
---
drivers/crypto/sa2ul.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index 8088eca84129..c0b1c7c5da7f 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -2236,7 +2236,7 @@ static int sa_ul_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct device_node *node = dev->of_node;
- static void __iomem *saul_base;
+ void __iomem *saul_base;
struct sa_crypto_data *dev_data;
u32 status, val;
int ret;
--
2.43.0