summaryrefslogtreecommitdiff
path: root/drivers/misc/pvpanic
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-05-22 09:55:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-27 15:46:57 +0300
commita224db273accc43699598a89895f9215ccfc2f31 (patch)
tree5c4836d1523bf4205510b63e1bd8c9ba8d8e7a02 /drivers/misc/pvpanic
parent9a3c72ee6ffcd461bae1bbdf4e71dca6d5bc160c (diff)
downloadlinux-a224db273accc43699598a89895f9215ccfc2f31.tar.xz
misc/pvpanic-mmio: Use GFP_KERNEL instead of GFP_ATOMIC
There is no need to use GFP_ATOMIC in a probe function. Use GFP_KERNEL instead. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/58cc7f12535a796a0ef1a699bcba61e45ab8a2ad.1621665058.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/pvpanic')
-rw-r--r--drivers/misc/pvpanic/pvpanic-mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/pvpanic/pvpanic-mmio.c b/drivers/misc/pvpanic/pvpanic-mmio.c
index 69b31f7adf4f..d4a407956c07 100644
--- a/drivers/misc/pvpanic/pvpanic-mmio.c
+++ b/drivers/misc/pvpanic/pvpanic-mmio.c
@@ -93,7 +93,7 @@ static int pvpanic_mmio_probe(struct platform_device *pdev)
return -EINVAL;
}
- pi = devm_kmalloc(dev, sizeof(*pi), GFP_ATOMIC);
+ pi = devm_kmalloc(dev, sizeof(*pi), GFP_KERNEL);
if (!pi)
return -ENOMEM;