misc/pvpanic-pci: 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/5ea4fb9802f7b780cc3e5ae768561a0372a39ebb.1621665058.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
372dae8997
commit
b647ceb5a1
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user