misc/pvpanic-pci: Use GFP_KERNEL instead of GFP_ATOMIC
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 22 May 2021 06:54:52 +0000 (08:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 12:46:57 +0000 (14:46 +0200)
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/5ea4fb9802f7b780cc3e5ae768561a0372a39ebb.1621665058.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/pvpanic/pvpanic-pci.c

index 046ce4e..3d7f9ef 100644 (file)
@@ -86,7 +86,7 @@ static int pvpanic_pci_probe(struct pci_dev *pdev,
        if (!base)
                return -ENOMEM;
 
-       pi = devm_kmalloc(&pdev->dev, sizeof(*pi), GFP_ATOMIC);
+       pi = devm_kmalloc(&pdev->dev, sizeof(*pi), GFP_KERNEL);
        if (!pi)
                return -ENOMEM;