Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: sta2x11: Use GFP_KERNEL instead of GFP_ATOMIC

pci_driver probe functions aren't called with locks held and
thus don't need GFP_ATOMIC. Use GFP_KERNEL instead.

Problem found with Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220210204223.104181-10-Julia.Lawall@inria.fr

authored by

Julia Lawall and committed by
Lee Jones
6ceb5f17 a002f65a

+1 -1
+1 -1
drivers/mfd/sta2x11-mfd.c
··· 590 590 591 591 /* Record this pdev before mfd_add_devices: their probe looks for it */ 592 592 if (!sta2x11_mfd_find(pdev)) 593 - sta2x11_mfd_add(pdev, GFP_ATOMIC); 593 + sta2x11_mfd_add(pdev, GFP_KERNEL); 594 594 595 595 /* Just 2 bars for all mfd's at present */ 596 596 for (i = 0; i < 2; i++) {