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>
This commit is contained in:
Родитель
bd75b4ef49
Коммит
142be74078
|
@ -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;
|
||||
|
|
|
@ -1658,7 +1658,7 @@ static int ux500_hash_probe(struct platform_device *pdev)
|
|||
struct hash_device_data *device_data;
|
||||
struct device *dev = &pdev->dev;
|
||||
|
||||
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче