Skip to content

Commit

Permalink
misc/pvpanic-mmio: 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/58cc7f12535a796a0ef1a699bcba61e45ab8a2ad.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 9a3c72e commit a224db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/pvpanic/pvpanic-mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a224db2

Please sign in to comment.