projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d71dac3
)
mtd: spear_smi: use GFP_KERNEL
author
Julia Lawall
<Julia.Lawall@inria.fr>
Thu, 10 Feb 2022 20:42:21 +0000
(21:42 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 18 Feb 2022 14:14:01 +0000
(15:14 +0100)
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: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20220210204223.104181-8-Julia.Lawall@inria.fr
drivers/mtd/devices/spear_smi.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/spear_smi.c
b/drivers/mtd/devices/spear_smi.c
index 2e00862389dd13051573b2d14ad956e960ca813d..24073518587fe7ca449fd61d7cc1dec078cffef5 100644
(file)
--- a/
drivers/mtd/devices/spear_smi.c
+++ b/
drivers/mtd/devices/spear_smi.c
@@
-969,7
+969,7
@@
static int spear_smi_probe(struct platform_device *pdev)
goto err;
}
- dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_
ATOMIC
);
+ dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_
KERNEL
);
if (!dev) {
ret = -ENOMEM;
goto err;