Skip to content

Commit

Permalink
misc/pvpanic-pci: Use GFP_KERNEL instead of GFP_ATOMIC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christophe JAILLET authored and Greg Kroah-Hartman committed May 27, 2021
1 parent 372dae8 commit b647ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/pvpanic/pvpanic-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b647ceb

Please sign in to comment.