summaryrefslogtreecommitdiff
path: root/drivers/crypto/ux500/cryp
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@inria.fr>2022-02-10 23:42:18 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-02-18 08:21:09 +0300
commit142be74078a2cf24f9694093e21216b2d8740d17 (patch)
tree6ad720187d78245dca9b0ca6fb1d88c80d099817 /drivers/crypto/ux500/cryp
parentbd75b4ef4977f567c7a567cf8f48dc122a097aa9 (diff)
downloadlinux-142be74078a2cf24f9694093e21216b2d8740d17.tar.xz
crypto: ux500 - use GFP_KERNEL
Platform_driver probe functions aren't called with locks held and thus don't need GFP_ATOMIC. Use GFP_KERNEL instead. Problem found with Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ux500/cryp')
-rw-r--r--drivers/crypto/ux500/cryp/cryp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c
index 97277b7150cb..5a57c9afd8c8 100644
--- a/drivers/crypto/ux500/cryp/cryp_core.c
+++ b/drivers/crypto/ux500/cryp/cryp_core.c
@@ -1264,7 +1264,7 @@ static int ux500_cryp_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
dev_dbg(dev, "[%s]", __func__);
- device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_ATOMIC);
+ device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_KERNEL);
if (!device_data) {
ret = -ENOMEM;
goto out;